public FhirCollectionUpgradeManager( IEnumerable <IFhirCollectionUpdater> collectionUpdater, CosmosDataStoreConfiguration configuration, IOptionsMonitor <CosmosCollectionConfiguration> namedCosmosCollectionConfigurationAccessor, ICosmosDbDistributedLockFactory lockFactory, ILogger <FhirCollectionUpgradeManager> logger) : base( collectionUpdater, configuration, GetCosmosCollectionConfiguration(namedCosmosCollectionConfigurationAccessor, Constants.CollectionConfigurationName), lockFactory, logger) { }
public CollectionUpgradeManager( IEnumerable <ICollectionUpdater> collectionUpdater, CosmosDataStoreConfiguration configuration, ICosmosDbDistributedLockFactory lockFactory, ILogger <CollectionUpgradeManager> logger) { EnsureArg.IsNotNull(collectionUpdater, nameof(collectionUpdater)); EnsureArg.IsNotNull(configuration, nameof(configuration)); EnsureArg.IsNotNull(lockFactory, nameof(lockFactory)); EnsureArg.IsNotNull(logger, nameof(logger)); _collectionUpdater = collectionUpdater; _configuration = configuration; _lockFactory = lockFactory; _logger = logger; }
public CollectionUpgradeManager( IEnumerable <ICollectionUpdater> collectionUpdater, CosmosDataStoreConfiguration configuration, IOptionsMonitor <CosmosCollectionConfiguration> namedCosmosCollectionConfigurationAccessor, ICosmosDbDistributedLockFactory lockFactory, ILogger <CollectionUpgradeManager> logger) { EnsureArg.IsNotNull(collectionUpdater, nameof(collectionUpdater)); EnsureArg.IsNotNull(configuration, nameof(configuration)); EnsureArg.IsNotNull(namedCosmosCollectionConfigurationAccessor, nameof(namedCosmosCollectionConfigurationAccessor)); EnsureArg.IsNotNull(lockFactory, nameof(lockFactory)); EnsureArg.IsNotNull(logger, nameof(logger)); _collectionUpdater = collectionUpdater; _configuration = configuration; _collectionConfiguration = GetCosmosCollectionConfiguration(namedCosmosCollectionConfigurationAccessor, Constants.CollectionConfigurationName); _lockFactory = lockFactory; _logger = logger; }