Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Fixed the review pointing out
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-dev004 committed Jun 17, 2022
1 parent 6958ff7 commit 642f67e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Covid19Radar/Covid19Radar.Android/MainApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ private void ScheduleBackgroundTasks()
}
catch (Exception exception)
{
_loggerService.Value.Exception("failed to Scheduling ExposureDetectionBackgroundService", exception);
_loggerService.Value.Exception("Failed to schedule ExposureDetectionBackgroundService", exception);
}
try
{
_eventLogSubmissionBackgroundService.Value.Schedule();
}
catch (Exception exception)
{
_loggerService.Value.Exception("failed to Scheduling EventLogSubmissionBackgroundService", exception);
_loggerService.Value.Exception("Failed to schedule EventLogSubmissionBackgroundService", exception);
}
}

Expand Down
4 changes: 2 additions & 2 deletions Covid19Radar/Covid19Radar.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ private void ScheduleBackgroundTask()
}
catch (Exception exception)
{
_loggerService.Value.Exception("failed to Scheduling", exception);
_loggerService.Value.Exception("Failed to schedule ExposureDetectionBackgroundService", exception);
}
try
{
_eventLogSubmissionBackgroundService.Value.Schedule();
}
catch (Exception exception)
{
_loggerService.Value.Exception("failed to Scheduling EventLogSubmissionBackgroundService", exception);
_loggerService.Value.Exception("Failed to schedule EventLogSubmissionBackgroundService", exception);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ ILoggerService loggerService

public override void Schedule()
{
_loggerService.StartMethod();

_ = BGTaskScheduler.Shared.Register(IDENTIFIER, null, task =>
{
HandleSendLogAsync((BGAppRefreshTask)task);
Expand Down

0 comments on commit 642f67e

Please sign in to comment.