From 642f67ede23edadd62c322f8d038d76925c0d7cc Mon Sep 17 00:00:00 2001 From: cocoa-dev004 <66989461+cocoa-dev004@users.noreply.github.com> Date: Fri, 17 Jun 2022 10:43:54 +0900 Subject: [PATCH] Fixed the review pointing out --- Covid19Radar/Covid19Radar.Android/MainApplication.cs | 4 ++-- Covid19Radar/Covid19Radar.iOS/AppDelegate.cs | 4 ++-- .../Services/EventLogSubmissionBackgroundService.cs | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Covid19Radar/Covid19Radar.Android/MainApplication.cs b/Covid19Radar/Covid19Radar.Android/MainApplication.cs index 0c357e822..016bfe599 100644 --- a/Covid19Radar/Covid19Radar.Android/MainApplication.cs +++ b/Covid19Radar/Covid19Radar.Android/MainApplication.cs @@ -93,7 +93,7 @@ private void ScheduleBackgroundTasks() } catch (Exception exception) { - _loggerService.Value.Exception("failed to Scheduling ExposureDetectionBackgroundService", exception); + _loggerService.Value.Exception("Failed to schedule ExposureDetectionBackgroundService", exception); } try { @@ -101,7 +101,7 @@ private void ScheduleBackgroundTasks() } catch (Exception exception) { - _loggerService.Value.Exception("failed to Scheduling EventLogSubmissionBackgroundService", exception); + _loggerService.Value.Exception("Failed to schedule EventLogSubmissionBackgroundService", exception); } } diff --git a/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs b/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs index c4fabdbb5..6c491c375 100644 --- a/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs +++ b/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs @@ -125,7 +125,7 @@ private void ScheduleBackgroundTask() } catch (Exception exception) { - _loggerService.Value.Exception("failed to Scheduling", exception); + _loggerService.Value.Exception("Failed to schedule ExposureDetectionBackgroundService", exception); } try { @@ -133,7 +133,7 @@ private void ScheduleBackgroundTask() } catch (Exception exception) { - _loggerService.Value.Exception("failed to Scheduling EventLogSubmissionBackgroundService", exception); + _loggerService.Value.Exception("Failed to schedule EventLogSubmissionBackgroundService", exception); } } diff --git a/Covid19Radar/Covid19Radar.iOS/Services/EventLogSubmissionBackgroundService.cs b/Covid19Radar/Covid19Radar.iOS/Services/EventLogSubmissionBackgroundService.cs index fb45d3428..eb6b65720 100644 --- a/Covid19Radar/Covid19Radar.iOS/Services/EventLogSubmissionBackgroundService.cs +++ b/Covid19Radar/Covid19Radar.iOS/Services/EventLogSubmissionBackgroundService.cs @@ -34,6 +34,8 @@ ILoggerService loggerService public override void Schedule() { + _loggerService.StartMethod(); + _ = BGTaskScheduler.Shared.Register(IDENTIFIER, null, task => { HandleSendLogAsync((BGAppRefreshTask)task);