Using CancellationTokens in ASP.NET Core minimal APIs

added by DotNetKicks
8/24/2022 5:35:18 AM

277 Views

This post is an update to a 5 year old post about using CancellationTokens in MVC controller actions. In this post I show how you can use a CancellationToken in your ASP.NET Core minimal API endpoint handlers to stop execution when a user cancels a request from their browser.


0 comments