Beispiel #1
0
        private CProject BuildDataStoreProject(KSolution kSolution, KDataStoreProject dataStoreKProject)
        {
            var service = _dataStoreServiceFactory.Create(dataStoreKProject.DataStoreType);

            if (service == null)
            {
                return(null);
            }

            return(service.BuildProject(kSolution, dataStoreKProject));
        }
Beispiel #2
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));
        }
        public StatsDownloadApiDataStoreProvider(IDataStoreServiceFactory dataStoreServiceFactory,
                                                 IStatsDownloadApiDatabaseService databaseService,
                                                 IFileValidationService fileValidationService,
                                                 IFilePayloadApiSettingsService filePayloadApiSettingsService,
                                                 ILoggingService loggingService)
        {
            dataStoreService = dataStoreServiceFactory.Create();

            this.databaseService               = databaseService;
            this.fileValidationService         = fileValidationService;
            this.filePayloadApiSettingsService = filePayloadApiSettingsService;
            this.loggingService = loggingService;
        }
Beispiel #4
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();
        }