How do I call an asynchronous process from an asp.net hosted module using C#5 async / await?
- 阅读更多 关于 How do I call an asynchronous process from an asp.net hosted module using C#5 async / await?
问题 I have a long running process that is called via a Nancy Module Get method. Rather than have the browser hang while the process runs I would like this call to be asynchronous, in other words I want the Get method to return right away and leave the long running process to do its thing. I could then check the status of the process at regular intervals and act accordingly. I am new to the async / await features of C#5 but I feel sure these are meant for just this kind of task. The code below