Try our conversational search powered by Generative AI!

Support async action methods on RestControllerBase

Created

Mar 25, 2015

Updated

Apr 17, 2015

Area

Falcon/CMS/Core

State

Closed, Acceptance tests pass


Description

Make it possible to use MVC 4 features for async action methods, for example:

 

[RestStore("samplestore")]

public class SampleStore : RestControllerBase

{

   [HttpGet]

  public virtual async Task<ActionResult> GetAsync(int? id)

   {

      var result = await MyAsyncService.LoadDataAsync();

      return Rest(result);

   }

}

 

More details:

http://www.asp.net/mvc/overview/performance/using-asynchronous-methods-in-aspnet-mvc-4