Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [AsyncInterceptor]
- public async Task Bar()
- {
- string s = "H";
- await Foo1();
- s += "i";
- await Foo2();
- throw new Exception();
- Console.WriteLine(s);
- }
- private async Task Foo1()
- {
- await Task.Delay(1000);
- throw new Exception("1");
- }
- private async Task Foo2()
- {
- await Task.Delay(1000);
- throw new Exception("2");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement