RunExtensions.Run(IApplicationBuilder, RequestDelegate) Method

Definition

Adds a terminal middleware delegate to the application's request pipeline.

C#
public static void Run (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.RequestDelegate handler);

Parameters

handler
RequestDelegate

A delegate that handles the request.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0