2
비동기 작업 <>과 비공식 작업의 차이점은 무엇입니까? 차이점이 있습니까? jquery ajax를 사용하는 것과 같습니다.비동기와 일반 사이의 MVC 차이
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<ActionResult> SetPassword(SetPasswordViewModel model)
{
// If we got this far, something failed, redisplay form
return View(model);
}
대
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult SetPassword(SetPasswordViewModel model)
{
// If we got this far, something failed, redisplay form
return View(model);
}
아니라 결국 그들은 매우 많은 차이가 있습니다. 따라서 비동기가 전혀 없습니다. 관련 항목 : http://stackoverflow.com/questions/26184247/async-vs-sync-benchmarks-on-mvc-controller-with-questions – Marco