Copy this bookmark:



description:


tags:



bookmark detail

Using CancellationTokens in ASP.NET Core MVC controllers
In this post I'll show how you can use a CancellationToken in your ASP.NET Core action method to stop execution when a user cancels a request from their browser. This can be useful if you have long running requests that you don't want to continue using up resources when a user clicks "stop" or "refresh" in their browser.
aspnet  mvc  cancellation 
8 weeks ago by 0xced
view in context