C# catch块内的异步方法调用

C# catch块内的异步方法调用,c#,async-await,C#,Async Await,有没有一种方法可以在catch块中调用async方法 目前,我有一个应用程序,它使用async/waited方法记录异常,但我不能将其放入catch块中,因为我被告知: The 'await' operator cannot occur inside a catch or finally block of a try-statement, inside the block of a lock-statment or in an unsafe context. 目前,我必须将异常分配给catch

有没有一种方法可以在catch块中调用
async
方法

目前,我有一个应用程序,它使用
async
/
wait
ed方法记录异常,但我不能将其放入catch块中,因为我被告知:

The 'await' operator cannot occur inside a catch or finally block of a try-statement, inside the block of a lock-statment or in an unsafe context.
目前,我必须将异常分配给catch块内的一个变量,然后调用我的
wait logException()

虽然这不是世界末日,但似乎应该/可能有另一种/更好的方式

有什么想法吗?

目前在C#5,没有,没有办法直接做

实际上,它已经实现了