API
AddEndpointFilter
Adds a filter around a Minimal API handler.
Formal Syntax & Structure
csharp syntaxcsharp
route.AddEndpointFilter(async (ctx, next) => await next(ctx));Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.route.AddEndpointFilter(async (ctx, next) => await next(ctx));