private IFilePayloadUploadService NewFilePayloadUploadProvider(
     IFileDownloadDatabaseService fileDownloadDatabaseService, IDataStoreServiceFactory dataStoreServiceFactory,
     IFileValidationService fileValidationService)
 {
     return(new FilePayloadUploadProvider(fileDownloadDatabaseService, dataStoreServiceFactory,
                                          fileValidationService));
 }
 public FileDownloadMinimumWaitTimeProvider(IFileDownloadDatabaseService fileDownloadDatabaseService,
                                            IDateTimeService dateTimeService)
 {
     this.fileDownloadDatabaseService = fileDownloadDatabaseService
                                        ?? throw new ArgumentNullException(nameof(fileDownloadDatabaseService));
     this.dateTimeService = dateTimeService ?? throw new ArgumentNullException(nameof(dateTimeService));
 }
Esempio n. 3
0
        public FilePayloadUploadProvider(IFileDownloadDatabaseService fileDownloadDatabaseService,
                                         IDataStoreServiceFactory dataStoreServiceFactory,
                                         IFileValidationService fileValidationService)
        {
            this.fileDownloadDatabaseService = fileDownloadDatabaseService
                                               ?? throw new ArgumentNullException(nameof(fileDownloadDatabaseService));
            this.fileValidationService =
                fileValidationService ?? throw new ArgumentNullException(nameof(fileValidationService));

            dataStoreService = dataStoreServiceFactory?.Create()
                               ?? throw new ArgumentNullException(nameof(dataStoreService));
        }
Esempio n. 4
0
 private IFileDownloadService NewFileDownloadProvider(IFileDownloadDatabaseService fileDownloadDatabaseService,
                                                      IFileDownloadLoggingService loggingService,
                                                      IDownloadService downloadService,
                                                      IFilePayloadSettingsService filePayloadSettingsService,
                                                      IResourceCleanupService resourceCleanupService,
                                                      IFileDownloadMinimumWaitTimeService
                                                      fileDownloadMinimumWaitTimeService,
                                                      IDateTimeService dateTimeService,
                                                      IFilePayloadUploadService filePayloadUploadService,
                                                      IFileDownloadEmailService fileDownloadEmailService,
                                                      IDataStoreServiceFactory dataStoreServiceFactory)
 {
     return(new FileDownloadProvider(fileDownloadDatabaseService, loggingService, downloadService,
                                     filePayloadSettingsService, resourceCleanupService, fileDownloadMinimumWaitTimeService, dateTimeService,
                                     filePayloadUploadService, fileDownloadEmailService, dataStoreServiceFactory));
 }
Esempio n. 5
0
        public FileDownloadProvider(IFileDownloadDatabaseService fileDownloadDatabaseService,
                                    IFileDownloadLoggingService loggingService, IDownloadService downloadService,
                                    IFilePayloadSettingsService filePayloadSettingsService,
                                    IResourceCleanupService resourceCleanupService,
                                    IFileDownloadMinimumWaitTimeService fileDownloadMinimumWaitTimeService,
                                    IDateTimeService dateTimeService,
                                    IFilePayloadUploadService filePayloadUploadService,
                                    IFileDownloadEmailService fileDownloadEmailService,
                                    IDataStoreServiceFactory dataStoreServiceFactory)
        {
            this.fileDownloadDatabaseService = fileDownloadDatabaseService;
            this.loggingService                     = loggingService;
            this.downloadService                    = downloadService;
            this.filePayloadSettingsService         = filePayloadSettingsService;
            this.resourceCleanupService             = resourceCleanupService;
            this.fileDownloadMinimumWaitTimeService = fileDownloadMinimumWaitTimeService;
            this.dateTimeService                    = dateTimeService;
            this.filePayloadUploadService           = filePayloadUploadService;
            this.fileDownloadEmailService           = fileDownloadEmailService;

            dataStoreService = dataStoreServiceFactory?.Create();

            ValidateCtorArgs();
        }
 private IFileDownloadMinimumWaitTimeService NewFileDownloadMinimumWaitTimeProvider(
     IFileDownloadDatabaseService fileDownloadDatabaseService, IDateTimeService dateTimeService)
 {
     return(new FileDownloadMinimumWaitTimeProvider(fileDownloadDatabaseService, dateTimeService));
 }