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; }
public KeysListToMemoryStreamConverter(IDatabaseKeysToBinaryStreamMapperService databaseKeysToBinaryStreamMapperService) { _databaseKeysToBinaryStreamMapperService = databaseKeysToBinaryStreamMapperService; }