public MongoStorageOperations(IStorage storage, IOptions <IndexerSettings> configuration, SyncConnection syncConnection) { data = (MongoData)storage; this.configuration = configuration.Value; this.storage = storage; this.syncConnection = syncConnection; }
/// <summary> /// Initializes a new instance of the <see cref="MongoBuilder"/> class. /// </summary> public MongoBuilder(ILogger <MongoBuilder> logger, IStorage data, IOptions <IndexerConfiguration> nakoConfiguration) : base(logger) { log = logger; mongoData = (MongoData)data; configuration = nakoConfiguration.Value; }
/// <summary> /// Initializes a new instance of the <see cref="MongoStorageOperations"/> class. /// </summary> public MongoStorageOperations(IStorage storage, ILogger <MongoStorageOperations> logger, IOptions <IndexerConfiguration> configuration, SyncConnection syncConnection) { data = (MongoData)storage; this.configuration = configuration.Value; log = logger; this.syncConnection = syncConnection; this.storage = storage; }