How to set time limit for request processing time of http request(kestrel, asp.net core)?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
1
I want to limit max time of http request processing in asp.net core(sever kestrel) . How can i do that? For example method DoSomething in controller below Controller{ static Random rnd = new Random(); public async Task<string> DoSomething(){ await Task.Delay(rnd.next(200)); return "some result"; } } should stop processing if processing time > 100 ms.
c# .net-core asp.net-core-2.0
share | improve this question
asked No...