How to write async operations in Intersoft WebApi based ApiControllers?

3 replies. Last post: January 5, 2015 6:57 AM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Leo HongMember

Intersoft WebApi Controllers support sync methods, but I cannot find a way to use them in async mode. As you know, the async methods are supported by the latest version of WebApi 2, it can increase performance significantly. Please take a look. 

Maybe the code can be generated as below:

[HttpGet]public async Task<QueryResult> Categories(ODataQueryOptions<Category> options)
{
	return await this.ToQueryResultAsync<Category>(db.Context.Categories, options);
}
All times are GMT -5. The time now is 12:46 AM.
Previous Next