Constructor MongoClientWrapper
- Namespace
- MongoDB.EntityFrameworkCore.Storage
- Assembly
- MongoDB.EntityFrameworkCore.dll
MongoClientWrapper(IDbContextOptions, IServiceProvider, IDiagnosticsLogger<Command>)
Create a new instance of MongoClientWrapper with the supplied parameters.
public MongoClientWrapper(IDbContextOptions dbContextOptions, IServiceProvider serviceProvider, IDiagnosticsLogger<DbLoggerCategory.Database.Command> commandLogger)
Parameters
dbContextOptionsIDbContextOptionsThe IDbContextOptions that specify how this provider is configured.
serviceProviderIServiceProviderThe IServiceProvider used to resolve dependencies.
commandLoggerIDiagnosticsLogger<DbLoggerCategory.Database.Command>The IDiagnosticsLogger used to log diagnostics events.