Exemplo n.º 1
0
 public ZipFileService(IOptions <HangfireConfig> configuration, IPackageBuilderService packageBuilder,
                       IZipFileInfoService zipFileInfoService, IFileSystem fileSystem)
 {
     _fileSystem          = fileSystem;
     _rootZipFilesFolders = configuration.Value.ZipFilesFolders;
     _packageBuilder      = packageBuilder;
     _zipFileInfoService  = zipFileInfoService;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
 public RemoveOldZipFilesJob(IFileSystem fileSystem, IZipFileInfoService zipFileInfoService)
 {
     _zipFileInfoService = zipFileInfoService;
     _fileSystem         = fileSystem;
 }
Exemplo n.º 7
0
 public void Init()
 {
     _fileSystem      = new FileSystemMockFactory().GetMock();
     _fileInfoService = new ZipFileInfoService(_fileSystem.Object);
 }