Should I always add CancellationToken to my controller actions?
Should I always add CancellationToken to my controller actions? No. You should not always. Using CancellationTokens in ASP.NET Core MVC controllers https://andrewlock.net/using-cancellationtokens-in-asp-net-core-mvc-controllers/ Whether this is correct behaviour will depend on your app. If the request modifies state, then you may not want to halt execution mid-way through a method. On the other hand, if the … Read more