Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 813 Bytes

File metadata and controls

30 lines (20 loc) · 813 Bytes

license version

MinApiLib.OperationCanceled

This package contains extensions to handle OperationCanceledException in your endpoints and creates 499 status code response.

Installation

You can install this package using the NuGet package manager:

Install-Package MinApiLib.OperationCanceled

Or using the .NET CLI:

dotnet add package MinApiLib.OperationCanceled

Usage

To use the OperationCanceledException handler, you can use the CatchOperationCanceled extension method:

global using MinApiLib.OperationCanceled;
// ...
app.CatchOperationCanceled();