API
IApplicationBuilder.Use
Adds a middleware delegate to the pipeline.
Formal Syntax & Structure
csharp syntaxcsharp
app.Use(async (context, next) => { await next(context); });Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.app.Use(async (context, next) => { await next(context); });