Skip to content

Commit

Permalink
ready for issue
Browse files Browse the repository at this point in the history
  • Loading branch information
i-maruyama committed May 27, 2021
1 parent cb1b9cc commit 643c7c7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Covid19Radar/Covid19Radar/ViewModels/HomePage/HomePageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ public override async void Initialize(INavigationParameters parameters)
{
loggerService.StartMethod();

try // almost the same as try-catch in Initialize()
{
await exposureNotificationService.StartExposureNotification();
await exposureNotificationService.FetchExposureKeyAsync();

var statusMessage = await exposureNotificationService.UpdateStatusMessageAsync();
loggerService.Info($"Exposure notification status: {statusMessage}");
}
catch (Exception ex)
{
Debug.WriteLine(ex.ToString());
loggerService.Exception("Failed to exposure notification status.", ex);
}

var count = exposureNotificationService.GetExposureCount();
loggerService.Info($"Exposure count: {count}");
if (count > 0)
Expand Down

0 comments on commit 643c7c7

Please sign in to comment.