Beispiel #1
0
 public EuGatewayService(ITemporaryExposureKeyRepository tempKeyRepository,
                         ISignatureService signatureService,
                         IEncodingService encodingService,
                         IKeyFilter keyFilter,
                         IGatewayWebContextReader gatewayWebContextReader,
                         IMapper mapper,
                         ILogger <EuGatewayService> logger,
                         EuGatewayConfig euGatewayConfig,
                         ISettingsService settingsService,
                         IEpochConverter epochConverter,
                         IGatewayHttpClient gatewayHttpClient,
                         IEFGSKeyStoreService storeService
                         )
 {
     _signatureService  = signatureService;
     _tempKeyRepository = tempKeyRepository;
     _encodingService   = encodingService;
     _keyFilter         = keyFilter;
     _webContextReader  = gatewayWebContextReader;
     _mapper            = mapper;
     _logger            = logger;
     _euGatewayConfig   = euGatewayConfig;
     _settingsService   = settingsService;
     _epochConverter    = epochConverter;
     _gatewayHttpClient = gatewayHttpClient;
     _storeService      = storeService;
 }
        private EuGatewayService CreateGatewayService(
            TemporaryExposureKeyRepository keysRepository,
            ISignatureService signatureService,
            IMapper autoMapper,
            IGatewayHttpClient gateWayHttpClient,
            IKeyFilter keyFilter,
            IGatewayWebContextReader webContextReader,
            IEFGSKeyStoreService storeService,
            ILogger <EuGatewayService> logger,
            EuGatewayConfig config)
        {
            var encodingService = new EncodingService();
            var epochConverter  = new EpochConverter();

            var gatewaySyncStateSettingsDao = new GatewaySyncStateSettingsDao(new SettingRepository(_dbContext));
            var settingsService             = new SettingsService(gatewaySyncStateSettingsDao);

            return(new EuGatewayService(
                       keysRepository,
                       signatureService,
                       encodingService,
                       keyFilter,
                       webContextReader,
                       autoMapper,
                       logger,
                       config,
                       settingsService,
                       epochConverter,
                       gateWayHttpClient,
                       storeService));
        }
Beispiel #3
0
 public EFGSKeyStoreService(IGatewayWebContextReader reader,
                            IKeyFilter filter,
                            ITemporaryExposureKeyRepository repository,
                            ILogger <EFGSKeyStoreService> logger,
                            IRiskCalculator riskCalculator,
                            IEpochConverter epochConverter,
                            IDaysSinceOnsetOfSymptomsDecoder daysSinceOnsetOfSymptomsDecoder)
 {
     _webContextReader  = reader;
     _keyFilter         = filter;
     _tempKeyRepository = repository;
     _logger            = logger;
     _riskCalculator    = riskCalculator;
     _epochConverter    = epochConverter;
     _daysSinceOnsetOfSymptomsDecoder = daysSinceOnsetOfSymptomsDecoder;
 }