MapExtensions Class

Extension methods for the Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.

Namespace
Microsoft.AspNetCore.Builder
Assemblies
  • Microsoft.AspNetCore.Http.Abstractions

Syntax

public class MapExtensions
class Microsoft.AspNetCore.Builder.MapExtensions

Methods

Map(Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Http.PathString, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>)

Branches the request pipeline based on matches of the given request path. If the request path starts with the given path, the branch is executed.

Arguments:
Return type:

Microsoft.AspNetCore.Builder.IApplicationBuilder

Returns:

The Microsoft.AspNetCore.Builder.IApplicationBuilder instance.

public static IApplicationBuilder Map(this IApplicationBuilder app, PathString pathMatch, Action<IApplicationBuilder> configuration)