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)); }
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(); }