public ApprenticeshipMigrationReportService( ICosmosDbHelper cosmosDbHelper, IOptions <CosmosDbCollectionSettings> settings) { _cosmosDbHelper = cosmosDbHelper; _settings = settings.Value; }
public CourseAuditService(IOptions <SearchServiceSettings> searchServiceSettings, IOptions <VenueServiceSettings> venueServiceSettings, IOptions <ProviderServiceSettings> providerServiceSettings, ICosmosDbHelper cosmosDbHelper, CosmosDbCollectionSettings settings, CosmosDbSettings cosmosDbSettings) { _searchServiceSettings = searchServiceSettings.Value; _venueServiceSettings = venueServiceSettings.Value; _providerServiceSettings = providerServiceSettings.Value; _cosmosDbHelper = cosmosDbHelper; _settings = settings; _cosmosDbSettings = cosmosDbSettings; }
public FeChoiceService( ICosmosDbHelper cosmosDbHelper, CosmosDbSettings cosmosDbSettings, CosmosDbCollectionSettings cosmosDbCollectionSettings) { Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper)); Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings)); Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings)); _cosmosDbHelper = cosmosDbHelper; _cosmosDbSettings = cosmosDbSettings; _cosmosDbCollectionSettings = cosmosDbCollectionSettings; }
public ApprenticeshipFrameworkService( ICosmosDbHelper cosmosDbHelper, CosmosDbSettings cosmosDbSettings, CosmosDbCollectionSettings cosmosDbCollectionSettings) { Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper)); Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings)); Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings)); _cosmosDbHelper = cosmosDbHelper; _cosmosDbSettings = cosmosDbSettings; _cosmosDbCollectionSettings = cosmosDbCollectionSettings; }
public StandardSectorCodeService( ICosmosDbHelper cosmosDbHelper, CosmosDbSettings cosmosDbSettings, CosmosDbCollectionSettings cosmosDbCollectionSettings) { Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper)); Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings)); Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings)); _cosmosDbHelper = cosmosDbHelper; _cosmosDbSettings = cosmosDbSettings; _cosmosDbCollectionSettings = cosmosDbCollectionSettings; }
public SectorSubjectAreaTier1Service( ICosmosDbHelper cosmosDbHelper, CosmosDbSettings cosmosDbSettings, CosmosDbCollectionSettings cosmosDbCollectionSettings) { Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper)); Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings)); Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings)); _cosmosDbHelper = cosmosDbHelper; _cosmosDbSettings = cosmosDbSettings; _cosmosDbCollectionSettings = cosmosDbCollectionSettings; }
private void BuildCosmosDbSettings(IServiceCollection services, IConfigurationRoot configuration) { var cosmosSettings = new CosmosDbSettings { DatabaseId = configuration["CosmosDatabaseId"], EndpointUri = configuration["EndpointUri"], PrimaryKey = configuration["PrimaryKey"] }; var cosmosCollectionSettings = new CosmosDbCollectionSettings { CoursesCollectionId = configuration["CoursesCollectionId"], CoursesMigrationReportCollectionId = configuration["CoursesMigrationReportCollectionId"], ProviderCollectionId = configuration["ProviderCollectionId"], DfcReportCollectionId = configuration["DfcReportCollectionId"], AuditCollectionId = configuration["AuditCollectionId"], ApprenticeshipMigrationReportCollectionId = configuration["ApprenticeshipMigrationReportCollectionId"], ApprenticeshipCollectionId = configuration["ApprenticeshipCollectionId"], ApprenticeshipDfcReportCollection = configuration["ApprenticeshipDfcReportCollectionId"] }; services.AddSingleton <CosmosDbSettings>(cosmosSettings); services.AddSingleton <CosmosDbCollectionSettings>(cosmosCollectionSettings); }
public CourseReportGenerationService(ICosmosDbHelper cosmosDbHelper, CosmosDbCollectionSettings settings) { _cosmosDbHelper = cosmosDbHelper; _settings = settings; }
public CourseArchiveService(ICosmosDbHelper cosmosDbHelper, CosmosDbSettings dbSettings, CosmosDbCollectionSettings settings) { _cosmosDbHelper = cosmosDbHelper; _dbSettings = dbSettings; _settings = settings; }
public ApprenticeshipReportGenerationService(ICosmosDbHelper cosmosDbHelper, CosmosDbCollectionSettings settings) { _cosmosDbHelper = cosmosDbHelper; _settings = settings; }