Полезные материалы по всему, что может быть интересно разработчику на C#.
CancellationTokens
Using CancellationTokens in ASP.NET Core minimal APIs In this post I'll show how you can use CancellationTokens in your minimal API handlers to stop execution when a user cancels a request from their browser
In this post I'll show how you can use CancellationTokens in your minimal API handlers to stop execution when a user cancels a request from their browser