diff --git a/Covid19Radar/Covid19Radar.Android/MainApplication.cs b/Covid19Radar/Covid19Radar.Android/MainApplication.cs index 4a26647bb..8d4c5f2e1 100644 --- a/Covid19Radar/Covid19Radar.Android/MainApplication.cs +++ b/Covid19Radar/Covid19Radar.Android/MainApplication.cs @@ -49,7 +49,7 @@ private Lazy _exposureDetectionBackground private readonly Lazy _eventLogSubmissionBackgroundService = new Lazy(() => ContainerLocator.Current.Resolve()); - private Lazy _dataMaintainanceService + private readonly Lazy _dataMaintainanceService = new Lazy(() => ContainerLocator.Current.Resolve()); private Lazy _loggerService diff --git a/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs b/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs index 3ebfa7aff..b989d2dd0 100644 --- a/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs +++ b/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs @@ -44,7 +44,7 @@ private Lazy _exposureDetectionBackground private readonly Lazy _eventLogSubmissionBackgroundService = new Lazy(() => ContainerLocator.Current.Resolve()); - private Lazy _dataMaintainanceBackgroundService + private readonly Lazy _dataMaintainanceBackgroundService = new Lazy(() => ContainerLocator.Current.Resolve()); private Lazy _exposureDetectionService diff --git a/Covid19Radar/Covid19Radar/Services/AbsDataMaintainanceBackgroundService.cs b/Covid19Radar/Covid19Radar/Services/AbsDataMaintainanceBackgroundService.cs index 0a034e26e..eefa1c0e1 100644 --- a/Covid19Radar/Covid19Radar/Services/AbsDataMaintainanceBackgroundService.cs +++ b/Covid19Radar/Covid19Radar/Services/AbsDataMaintainanceBackgroundService.cs @@ -15,7 +15,7 @@ public abstract class AbsDataMaintainanceBackgroundService : IBackgroundService private readonly IEventLogRepository _eventLogRepository; - public AbsDataMaintainanceBackgroundService( + protected AbsDataMaintainanceBackgroundService( ILoggerService loggerService, IEventLogRepository eventLogRepository) {