private async Task StartExposureNotificationAsync() { loggerService.StartMethod(); try { var isSuccess = await exposureNotificationApiService.StartExposureNotificationAsync(); if (isSuccess) { await UpdateView(); } } catch (ENException exception) { loggerService.Exception("Failed to exposure notification start.", exception); await UpdateView(); } catch (AndroidGooglePlayServicesApiException exception) { loggerService.Exception("Failed to exposure notification start.", exception); await UpdateView(); } finally { loggerService.EndMethod(); } }
public async void OnEnabled() { loggerService.StartMethod(); await exposureNotificationApiService.StartExposureNotificationAsync(); await NavigateNextPage(); loggerService.EndMethod(); }
public async void OnEnabled() { loggerService.StartMethod(); await exposureNotificationApiService.StartExposureNotificationAsync(); await NavigationService.NavigateAsync(nameof(TutorialPage6)); loggerService.EndMethod(); }