Geek Culture
Published in

Geek Culture

How to support the HTTP request cancelation in .net core

© Davis Sanchez @Pexels

In some cases your users will navigate to your application. Then it will create an API call to your service. the user then decide to left the page, but the request will be executed onto the server until it is ready. So you must be able to cancel this request then to get not into resource troubles

Using CancellationToken to Cancel Requests Sent…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store