public ExposureCheckPageViewModel( INavigationService navigationService, ILoggerService loggerService, IExposureDataRepository exposureDataRepository, IExposureRiskCalculationService exposureRiskCalculationService, ILocalPathService localPathService, IExposureDataExportService exposureDataExportService, IUserDataRepository userDataRepository, IExposureRiskCalculationConfigurationRepository exposureRiskCalculationConfigurationRepository, IDateTimeUtility dateTimeUtility ) : base(navigationService) { _loggerService = loggerService; _exposureDataRepository = exposureDataRepository; _exposureRiskCalculationService = exposureRiskCalculationService; _localPathService = localPathService; _exposureDataExportService = exposureDataExportService; _userDataRepository = userDataRepository; _exposureRiskCalculationConfigurationRepository = exposureRiskCalculationConfigurationRepository; _dateTimeUtility = dateTimeUtility; ExposureCheckScores = new ObservableCollection <ExposureCheckScoreModel>(); UtcDescription = string.Format( AppResources.LowRiskContactPageAnnotationDecription2, TimeZoneInfo.Local.StandardName ); }
public BackupAttributeService( ILogPathService logPathService, ILocalPathService localPathService ) { this.logPathService = logPathService; this.localPathService = localPathService; }
public EventLogRepository( ISendEventLogStateRepository sendEventLogStateRepository, IDateTimeUtility dateTimeUtility, ILocalPathService localPathService, ILoggerService loggerService, IBackupAttributeService backupAttributeService ) { _sendEventLogStateRepository = sendEventLogStateRepository; _dateTimeUtility = dateTimeUtility; _basePath = localPathService.EventLogDirPath; _loggerService = loggerService; _backupAttributeService = backupAttributeService; }
public ExposureRiskCalculationConfigurationRepository( IHttpClientService httpClientService, ILocalPathService localPathService, IServerConfigurationRepository serverConfigurationRepository, ILoggerService loggerService ) { _localPathService = localPathService; _serverConfigurationRepository = serverConfigurationRepository; _loggerService = loggerService; _httpClient = httpClientService.Create(); _httpClient.Timeout = TimeSpan.FromSeconds(TIMEOUT_SECONDS); _configDir = PrepareConfigDir(); _currentPath = localPathService.CurrentExposureRiskCalculationConfigurationPath; }
public AbsExposureDetectionBackgroundService( IDiagnosisKeyRepository diagnosisKeyRepository, AbsExposureNotificationApiService exposureNotificationApiService, IExposureConfigurationRepository exposureConfigurationRepository, ILoggerService loggerService, IUserDataRepository userDataRepository, IServerConfigurationRepository serverConfigurationRepository, ILocalPathService localPathService, IDateTimeUtility dateTimeUtility ) { _diagnosisKeyRepository = diagnosisKeyRepository; _exposureNotificationApiService = exposureNotificationApiService; _exposureConfigurationRepository = exposureConfigurationRepository; _loggerService = loggerService; _userDataRepository = userDataRepository; _serverConfigurationRepository = serverConfigurationRepository; _localPathService = localPathService; _dateTimeUtility = dateTimeUtility; }
public ExposureConfigurationRepository( IHttpClientService httpClientService, ILocalPathService localPathService, IPreferencesService preferencesService, IServerConfigurationRepository serverConfigurationRepository, IDateTimeUtility dateTimeUtility, ILoggerService loggerService ) { _localPathService = localPathService; _preferencesService = preferencesService; _serverConfigurationRepository = serverConfigurationRepository; _dateTimeUtility = dateTimeUtility; _loggerService = loggerService; _httpClient = httpClientService.Create(); _httpClient.Timeout = TimeSpan.FromSeconds(TIMEOUT_SECONDS); _configDir = PrepareConfigDir(); _currentExposureConfigurationPath = localPathService.CurrentExposureConfigurationPath; }
public ExposureDetectionBackgroundServiceMock( IDiagnosisKeyRepository diagnosisKeyRepository, AbsExposureNotificationApiService exposureNotificationApiService, IExposureConfigurationRepository exposureConfigurationRepository, ILoggerService loggerService, IUserDataRepository userDataRepository, IServerConfigurationRepository serverConfigurationRepository, ILocalPathService localPathService, IDateTimeUtility dateTimeUtility ) : base( diagnosisKeyRepository, exposureNotificationApiService, exposureConfigurationRepository, loggerService, userDataRepository, serverConfigurationRepository, localPathService, dateTimeUtility ) { }
public ExposuresPageViewModel( INavigationService navigationService, IExposureDataRepository exposureDataRepository, IExposureRiskCalculationConfigurationRepository exposureRiskCalculationConfigurationRepository, IExposureRiskCalculationService exposureRiskCalculationService, ILocalPathService localPathService, IExposureDataExportService exposureDataExportService, ILoggerService loggerService ) : base(navigationService) { _exposureDataRepository = exposureDataRepository; _exposureRiskCalculationConfigurationRepository = exposureRiskCalculationConfigurationRepository; _exposureRiskCalculationService = exposureRiskCalculationService; _localPathService = localPathService; _exposureDataExportService = exposureDataExportService; _loggerService = loggerService; Title = AppResources.MainExposures; Exposures = new ObservableCollection <ExposureSummary>(); UtcDescription = string.Format( AppResources.ExposuresPageToUtcDescription, TimeZoneInfo.Local.StandardName ); }
private LogPathService CreateDefaultLogPathService(ILocalPathService localPathService) { return(new LogPathService(localPathService)); }
public LogPathService(ILocalPathService localPathService) { this.localPathService = localPathService; }