Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
        public async void OnEnabled()
        {
            loggerService.StartMethod();

            await exposureNotificationApiService.StartExposureNotificationAsync();

            await NavigateNextPage();

            loggerService.EndMethod();
        }
Exemplo n.º 3
0
        public async void OnEnabled()
        {
            loggerService.StartMethod();

            await exposureNotificationApiService.StartExposureNotificationAsync();

            await NavigationService.NavigateAsync(nameof(TutorialPage6));

            loggerService.EndMethod();
        }