コード例 #1
0
 public ZipFileService(IOptions <HangfireConfig> configuration, IPackageBuilderService packageBuilder,
                       IZipFileInfoService zipFileInfoService, IFileSystem fileSystem)
 {
     _fileSystem          = fileSystem;
     _rootZipFilesFolders = configuration.Value.ZipFilesFolders;
     _packageBuilder      = packageBuilder;
     _zipFileInfoService  = zipFileInfoService;
 }
コード例 #2
0
 public ZipFileService(HangfireConfig hangfireConfig, IPackageBuilderService packageBuilder,
                       IZipFileInfoService zipFileInfoService, IFileSystem fileSystem)
 {
     _fileSystem          = fileSystem;
     _rootZipFilesFolders = hangfireConfig.ZipFilesFolders;
     _originCountryCode   = hangfireConfig.OriginCountryCode;
     _packageBuilder      = packageBuilder;
     _zipFileInfoService  = zipFileInfoService;
 }
 public CacheOperationsV3(IMemoryCache memoryCache, IConfiguration configuration, ILogger <CacheOperationsV3> logger, IZipFileInfoService zipFileInfoService)
 {
     _zipFileInfoService  = zipFileInfoService;
     _logger              = logger;
     _memoryCache         = memoryCache;
     _configuration       = configuration;
     _fileCachingTimespan = TimeSpan.Parse(_configuration["AppSettings:PreviousDayFileCaching"]);
     _lockTaken           = false;
 }
コード例 #4
0
 public DiagnosticKeysControllerV2(
     ILogger <DiagnosticKeysControllerV2> logger,
     IConfiguration configuration,
     IExposureKeyValidator exposureKeyValidator,
     IExposureConfigurationService exposureConfigurationService,
     KeyValidationConfiguration keyValidationConfig,
     IAddTemporaryExposureKeyService addTemporaryExposureKeyService,
     IZipFileInfoService zipFileInfoService)
 {
     _configuration        = configuration;
     _exposureKeyValidator = exposureKeyValidator;
     _logger                         = logger;
     _zipFileInfoService             = zipFileInfoService;
     _exposureConfigurationService   = exposureConfigurationService;
     _keyValidationConfig            = keyValidationConfig;
     _addTemporaryExposureKeyService = addTemporaryExposureKeyService;
 }
コード例 #5
0
 public DiagnosticKeyControllerV3(
     ILogger <DiagnosticKeyControllerV3> logger,
     IExposureConfigurationService exposureConfigurationService,
     IAddTemporaryExposureKeyService addTemporaryExposureKeyService,
     IZipFileInfoService zipFileInfoService,
     AppSettingsConfig appSettingsConfig,
     ICacheOperationsV3 cacheOperations,
     IExposureKeyReader exposureKeyReader)
 {
     _cacheOperations                = cacheOperations;
     _logger                         = logger;
     _zipFileInfoService             = zipFileInfoService;
     _appSettingsConfig              = appSettingsConfig;
     _exposureConfigurationService   = exposureConfigurationService;
     _addTemporaryExposureKeyService = addTemporaryExposureKeyService;
     _exposureKeyReader              = exposureKeyReader;
 }
コード例 #6
0
 public RemoveOldZipFilesJob(IFileSystem fileSystem, IZipFileInfoService zipFileInfoService)
 {
     _zipFileInfoService = zipFileInfoService;
     _fileSystem         = fileSystem;
 }
コード例 #7
0
 public void Init()
 {
     _fileSystem      = new FileSystemMockFactory().GetMock();
     _fileInfoService = new ZipFileInfoService(_fileSystem.Object);
 }