MethodWithThrow() public méthode

public MethodWithThrow ( ) : Task,
Résultat Task,
 public void Run()
 {
     var instance = new Target();
     instance.MethodWithThrow();
     //run and have a look at the debug window
     Thread.Sleep(10);
 }
 public async void Run()
 {
     var instance = new Target();
     await instance.MethodWithThrow();
     //run and have a look at your Raygun dashboard
     Thread.Sleep(10);
 }
Exemple #3
0
    public void Run()
    {
        var instance = new Target();

        instance.MethodWithThrow();
        //run and have a look at the debug window
        Thread.Sleep(10);
    }
Exemple #4
0
    public async void Run()
    {
        var instance = new Target();
        await instance.MethodWithThrow();

        //run and have a look at your Raygun dashboard
        Thread.Sleep(10);
    }
Exemple #5
0
    public async Task Run()
    {
        try
        {
            var instance = new Target();
            await instance.MethodWithThrow().ConfigureAwait(false);

            //run and have a look at the debug window
        }
        catch
        {
        }
    }
Exemple #6
0
    public async Task Run()
    {
        try
        {
            var instance = new Target();
            await instance.MethodWithThrow().ConfigureAwait(false);

            //run and have a look at your Raygun dashboard
            Thread.Sleep(10);
        }
        catch
        {
        }
    }
Exemple #7
0
 public Task Run()
 {
     var instance = new Target();
     return instance.MethodWithThrow();
     //run and have a look at the debug window
 }