MethodWithThrow() public method

public MethodWithThrow ( ) : Task,
return 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);
 }
Example #3
0
    public void Run()
    {
        var instance = new Target();

        instance.MethodWithThrow();
        //run and have a look at the debug window
        Thread.Sleep(10);
    }
Example #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);
    }
Example #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
        {
        }
    }
Example #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
        {
        }
    }
Example #7
0
 public Task Run()
 {
     var instance = new Target();
     return instance.MethodWithThrow();
     //run and have a look at the debug window
 }