I'm using async methods in my WebAPi controllers:
public async Task<HttpResponseMessage> SampleMethod(int subscriptionNumber, DateTime departureDate)
{
// [...]
}
How do I configure the request timeout? The operation can take up to a couple of minutes and I have to make sure that the request do not timeout.
In MVC there is an attribute called [AsyncTimeout]. Are there an equivalent in WebApi? Can it be configured globally?