MethodWithThrow() public method

public MethodWithThrow ( ) : Task,
return Task,
コード例 #1
0
 public void Run()
 {
     var instance = new Target();
     instance.MethodWithThrow();
     //run and have a look at the debug window
     Thread.Sleep(10);
 }
コード例 #2
0
 public async void Run()
 {
     var instance = new Target();
     await instance.MethodWithThrow();
     //run and have a look at your Raygun dashboard
     Thread.Sleep(10);
 }
コード例 #3
0
    public void Run()
    {
        var instance = new Target();

        instance.MethodWithThrow();
        //run and have a look at the debug window
        Thread.Sleep(10);
    }
コード例 #4
0
ファイル: Sample.cs プロジェクト: ropean/FodyAddinSamples
    public async void Run()
    {
        var instance = new Target();
        await instance.MethodWithThrow();

        //run and have a look at your Raygun dashboard
        Thread.Sleep(10);
    }
コード例 #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
        {
        }
    }
コード例 #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
        {
        }
    }
コード例 #7
0
ファイル: Sample.cs プロジェクト: Fody/FodyAddinSamples
 public Task Run()
 {
     var instance = new Target();
     return instance.MethodWithThrow();
     //run and have a look at the debug window
 }