Contoso.Forms.Puppet.FakeService.DoStuffInBackground C# (CSharp) Méthode

DoStuffInBackground() static private méthode

static private DoStuffInBackground ( ) : Task
Résultat Task
        internal static async Task DoStuffInBackground()
        {
            await Task.Run(() => throw new IOException("Server did not respond"));
        }
    }

Usage Example

 public async void AsyncException(object sender, EventArgs e)
 {
     try
     {
         await FakeService.DoStuffInBackground();
     }
     catch (Exception ex) when(HandleExceptionsSwitchCell.On)
     {
         TrackException(ex);
     }
 }
All Usage Examples Of Contoso.Forms.Puppet.FakeService::DoStuffInBackground