Canceling HTTP Requests in ASP.NET Core with CancellationToken

added by DotNetKicks
3/1/2021 5:47:45 PM

639 Views

It is quite a possible situation to have a user navigating to the client application's page that sends an HTTP request to the server. While our app processing the request, a user can navigate away from that page. In such a case, we want to cancel the HTTP request since the response is no longer important to that user.


0 comments