示例#1
0
        public async Task FetchExposureKeyAsync()
        {
            loggerService.StartMethod();
            await ExposureNotification.UpdateKeysFromServer();

            loggerService.EndMethod();
        }
 async Task DoAsyncWork()
 {
     if (await ExposureNotification.IsEnabledAsync())
     {
         await ExposureNotification.UpdateKeysFromServer();
     }
 }
 async Task <Result> DoAsyncWork()
 {
     try
     {
         if (await ExposureNotification.IsEnabledAsync())
         {
             await ExposureNotification.UpdateKeysFromServer();
         }
         return(Result.InvokeSuccess());
     }
     catch (Exception ex)
     {
         System.Diagnostics.Debug.WriteLine(ex);
         return(Result.InvokeRetry());
     }
 }