AZURE: async Run() in workerrole
问题 I have an async task. async Task UploadFiles() { } I would like to call 'await' on UploadFiles() in Run() method in azure workerrole. but 'await' works only in the methods declared async. So can I make Run() method async like below: public override void Run() { UploadFiles(); } to public async override void Run() { await UploadFiles(); } 回答1: Worker roles only have a synchronous entry point. This means that you will need to keep the thread that the Run method runs on active. You can just call