public BulkUploadController(
            ILogger <BulkUploadController> logger,
            IBulkUploadService bulkUploadService,
            IBlobStorageService blobService,
            ICourseService courseService,
            IWebHostEnvironment env,
            IProviderService providerService,
            IBackgroundTaskQueue queue)
        {
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            if (bulkUploadService == null)
            {
                throw new ArgumentNullException(nameof(bulkUploadService));
            }

            if (blobService == null)
            {
                throw new ArgumentNullException(nameof(blobService));
            }

            if (courseService == null)
            {
                throw new ArgumentNullException(nameof(courseService));
            }

            if (env == null)
            {
                throw new ArgumentNullException(nameof(env));
            }

            if (courseService == null)
            {
                throw new ArgumentNullException(nameof(courseService));
            }

            if (providerService == null)
            {
                throw new ArgumentNullException(nameof(providerService));
            }

            if (queue == null)
            {
                throw new ArgumentNullException(nameof(queue));
            }

            _logger            = logger;
            _bulkUploadService = bulkUploadService;
            _blobService       = blobService;
            _courseService     = courseService;
            _env             = env;
            _courseService   = courseService;
            _providerService = providerService;
            _queue           = queue;
        }
Exemplo n.º 2
0
 public BulkUploadController(
     IBulkUploadService bulkUploadService,
     IBlobStorageService blobService,
     ICourseService courseService,
     ICosmosDbQueryDispatcher cosmosDbQueryDispatcher,
     IBackgroundWorkScheduler backgroundWorkScheduler,
     ILogger <BulkUploadController> logger,
     IProviderContextProvider providerContextProvider)
 {
     _bulkUploadService       = bulkUploadService ?? throw new ArgumentNullException(nameof(bulkUploadService));
     _blobService             = blobService ?? throw new ArgumentNullException(nameof(blobService));
     _courseService           = courseService ?? throw new ArgumentNullException(nameof(courseService));
     _cosmosDbQueryDispatcher = cosmosDbQueryDispatcher ?? throw new ArgumentNullException(nameof(cosmosDbQueryDispatcher));
     _backgroundWorkScheduler = backgroundWorkScheduler ?? throw new ArgumentNullException(nameof(backgroundWorkScheduler));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _providerContextProvider = providerContextProvider;
 }
 public ProcessAnnouncementTask(DateTime? firstAnnouncedDate)
 {
     _searvice = new BulkUploadService();
     _firstAnnouncedDate = firstAnnouncedDate;
 }
 public PriceReportBulkInsertTask(string fileName)
 {
     _service  = new BulkUploadService();
     _fileName = fileName;
 }
Exemplo n.º 5
0
 public ProcessTitleTask()
 {
     _searvice = new BulkUploadService();
 }
 public ProcessPipeLineOrderTask()
 {
     _searvice = new BulkUploadService();
 }
 public FTPAnnouncementArchiveTask()
 {
     _searvice = new BulkUploadService();
 }
 /// <summary>
 /// Create instance for BulkUploadService
 /// </summary>
 public FTPPriceReportArchiveTask()
 {
     _searvice = new BulkUploadService();
 }
Exemplo n.º 9
0
 public ProcessPriceReportTask()
 {
     _searvice = new BulkUploadService();
 }
Exemplo n.º 10
0
 public VIDBulkInsertTask()
 {
     _service = new BulkUploadService();
 }
 public FTPPipelineOrderArchiveTask()
 {
     _searvice = new BulkUploadService();
 }
 /// <summary>
 /// Create instance for BulkUploadService
 /// </summary>
 /// <param name="fileName">Announcement file name</param>
 public AnnouncementBulkInsertTask(string fileName)
 {
     _service  = new BulkUploadService();
     _fileName = fileName;
 }
 public PipeLineOrderFTPDownloadTask()
 {
     _searvice = new BulkUploadService();
 }
Exemplo n.º 14
0
 /// <summary>
 /// Create instance for BulkUploadService
 /// </summary>
 /// <param name="fileName">PipeLine order file name</param>
 public PipeLineOrderBulkInsertTask(string fileName)
 {
     _service  = new BulkUploadService();
     _fileName = fileName;
 }
 public BulkUploadController(IBulkUploadService bulkUploadService, IServiceFactory serviceFactory) : base(serviceFactory)
 {
     _bulkUploadService = bulkUploadService;
 }
Exemplo n.º 16
0
 public QCReportFTPDownloadTask()
 {
     _searvice = new BulkUploadService();
 }
Exemplo n.º 17
0
 public AnnouncementUploaderJob(List <ITask> tasks)
 {
     //_config = config;
     _tasks   = tasks;
     _service = new BulkUploadService();
 }
Exemplo n.º 18
0
 /// <summary>
 /// Create instance for BulkUploadService
 /// </summary>
 public AnnouncementFTPDownloadTask()
 {
     _searvice = new BulkUploadService();
 }
 public VIDFTPDownloadTask()
 {
     _searvice = new BulkUploadService();
 }