【发布时间】:2012-03-22 15:05:31
【问题描述】:
我们现在可以在 ASP.NET MVC 4 中使用 async/await 关键字了。
public async Task<ActionResult> TestAsync()
{
WebClient client = new WebClient();
return Content(await client.DownloadStringTaskAsync("http://www.google.com"));
}
但是如何在 ASP.NET WebForms 中使用它呢?
【问题讨论】:
标签: asp.net asynchronous webforms async-await