This package contains extensions to handle OperationCanceledException
in your endpoints and creates 499
status code response.
You can install this package using the NuGet package manager:
Install-Package MinApiLib.OperationCanceled
Or using the .NET CLI:
dotnet add package MinApiLib.OperationCanceled
To use the OperationCanceledException
handler, you can use the CatchOperationCanceled
extension method:
global using MinApiLib.OperationCanceled;
// ...
app.CatchOperationCanceled();