Azure WebJobs - Can I use Async Methods?

后端 未结 2 1683
不思量自难忘°
不思量自难忘° 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.

    0 讨论(0)
  • 2021-02-12 12:18

    With the passage of time, the answer is now, yes, you can!

    0 讨论(0)
提交回复
热议问题