Azure WebJobs - Can I use Async Methods?

后端 未结 2 1677
不思量自难忘°
不思量自难忘° 2021-02-12 11:24

I was wondering if the Azure WebJobs SDK can trigger async methods? Currently I have a method that looks like the following:

class Program
{
    static void Mai         


        
2条回答
  •  鱼传尺愫
    2021-02-12 12:07

    Async is now supported. See the blog post here.

    Unfortunately, the short answer to both questions is: not supported.

    (slightly) longer answer:

    WebJobs SDK does not support async methods. If you look in the execution log (on the dashboard) you will see a warning saying that async functions (functions that return Task or Task<>) are executed synchronously.

    We don't support the local emulator. You have to use a real Storage Account when developing.

提交回复
热议问题