Exemplo n.º 1
0
 public Initializer_1_0_0(
     IApplicationPropertyService applicationPropertyService,
     ILoggerService loggerService
     )
 {
     _applicationPropertyService = applicationPropertyService;
     _loggerService = loggerService;
 }
Exemplo n.º 2
0
 public UserDataService(IHttpDataService httpDataService, ILoggerService loggerService, IPreferencesService preferencesService, ITermsUpdateService termsUpdateService, IExposureNotificationService exposureNotificationService, IApplicationPropertyService applicationPropertyService)
 {
     this.httpDataService             = httpDataService;
     this.loggerService               = loggerService;
     this.preferencesService          = preferencesService;
     this.termsUpdateService          = termsUpdateService;
     this.exposureNotificationService = exposureNotificationService;
     this.applicationPropertyService  = applicationPropertyService;
 }
Exemplo n.º 3
0
        public ExposureNotificationService(ILoggerService loggerService, IHttpClientService httpClientService, ISecureStorageService secureStorageService, IPreferencesService preferencesService, IApplicationPropertyService applicationPropertyService)
        {
            this.loggerService              = loggerService;
            this.httpClientService          = httpClientService;
            this.secureStorageService       = secureStorageService;
            this.preferencesService         = preferencesService;
            this.applicationPropertyService = applicationPropertyService;

            _ = GetExposureNotificationConfig();
        }
Exemplo n.º 4
0
 public Migrator_1_2_2(
     IApplicationPropertyService applicationPropertyService,
     IPreferencesService preferencesService,
     ISecureStorageService secureStorageService,
     ILoggerService loggerService
     )
 {
     _applicationPropertyService = applicationPropertyService;
     _preferencesService         = preferencesService;
     _secureStorageService       = secureStorageService;
     _loggerService = loggerService;
 }
Exemplo n.º 5
0
 public MigrationService(
     IMigrationProcessService platformMigrationProcessService,
     IApplicationPropertyService applicationPropertyService,
     IPreferencesService preferencesService,
     ISecureStorageService secureStorageService,
     IEssentialsService essentialsService,
     ILoggerService loggerService
     )
 {
     _platformMigrationProcessService = platformMigrationProcessService;
     _applicationPropertyService      = applicationPropertyService;
     _preferencesService   = preferencesService;
     _secureStorageService = secureStorageService;
     _essentialsService    = essentialsService;
     _loggerService        = loggerService;
 }
Exemplo n.º 6
0
        public HttpDataService(ILoggerService loggerService, IHttpClientService httpClientService, ISecureStorageService secureStorageService, IApplicationPropertyService applicationPropertyService)
        {
            this.loggerService              = loggerService;
            this.secureStorageService       = secureStorageService;
            this.applicationPropertyService = applicationPropertyService;

            // Create API key based client.
            apiClient             = httpClientService.Create();
            apiClient.BaseAddress = new Uri(AppSettings.Instance.ApiUrlBase);
            apiClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
            apiClient.DefaultRequestHeaders.Add("x-functions-key", AppSettings.Instance.ApiSecret);
            apiClient.DefaultRequestHeaders.Add("x-api-key", AppSettings.Instance.ApiKey);

            // Create client.
            httpClient             = httpClientService.Create();
            httpClient.BaseAddress = new Uri(AppSettings.Instance.ApiUrlBase);
            httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
            httpClient.DefaultRequestHeaders.Add("x-functions-key", AppSettings.Instance.ApiSecret);

            // Create download client.
            downloadClient = httpClientService.Create();
        }
Exemplo n.º 7
0
 public TermsUpdateService(ILoggerService loggerService, IApplicationPropertyService applicationPropertyService, IPreferencesService preferencesService)
 {
     this.loggerService = loggerService;
     this.applicationPropertyService = applicationPropertyService;
     this.preferencesService         = preferencesService;
 }