Beispiel #1
0
 private void ConstructPackageBuilderService(IZipPackageBuilderConfig configuration)
 {
     _packageBuilderService = new PackageBuilderService(
         _dbToBinaryService.Object,
         configuration,
         _temporaryExposureKeyRepository.Object,
         _keysListToMemoryStreamConverter.Object
         );
 }
Beispiel #2
0
 public DatabaseKeysToBinaryStreamMapperService(IExposureKeyMapper exposureKeyMapper, IZipPackageBuilderConfig appSettingsConfig)
 {
     _exposureKeyMapper = exposureKeyMapper;
     _appSettingsConfig = appSettingsConfig;
 }
        private readonly int _fetchCommandTimeout = 0;//set default value to 0 so the timeout is not changed unless a value is given in the config


        public PackageBuilderService(IDatabaseKeysToBinaryStreamMapperService databaseKeysToBinaryStreamMapperService, IZipPackageBuilderConfig configuration, ITemporaryExposureKeyRepository temporaryExposureKeyRepository,
                                     IKeysListToMemoryStreamConverter keysListToMemoryStreamConverter)
        {
            _databaseKeysToBinaryStreamMapperService = databaseKeysToBinaryStreamMapperService;
            _temporaryExposureKeyRepository          = temporaryExposureKeyRepository;
            _keysListToMemoryStreamConverter         = keysListToMemoryStreamConverter;

            _maxKeysPerFile      = configuration.MaxKeysPerFile;
            _fetchCommandTimeout = configuration.FetchCommandTimeout;
        }