public BulkUploadService( IVenueService venueService, IOptions <CourseServiceSettings> courseServiceSettings, ICourseService courseService, ISearchClient <Lars> larsSearchClient) { _venueService = venueService ?? throw new ArgumentNullException(nameof(venueService)); _courseServiceSettings = courseServiceSettings?.Value ?? throw new ArgumentNullException(nameof(courseServiceSettings)); _courseService = courseService ?? throw new ArgumentNullException(nameof(courseService)); _larsSearchClient = larsSearchClient ?? throw new ArgumentNullException(nameof(larsSearchClient)); }
public BulkUploadService( IOptions <CourseServiceSettings> courseServiceSettings, ICourseService courseService, ISearchClient <Lars> larsSearchClient, ICosmosDbQueryDispatcher cosmosDbQueryDispatcher, IRegionCache regionCache) { _courseServiceSettings = courseServiceSettings?.Value ?? throw new ArgumentNullException(nameof(courseServiceSettings)); _courseService = courseService ?? throw new ArgumentNullException(nameof(courseService)); _larsSearchClient = larsSearchClient ?? throw new ArgumentNullException(nameof(larsSearchClient)); _cosmosDbQueryDispatcher = cosmosDbQueryDispatcher; _regionCache = regionCache; }