MapExtensions Class¶
Extension methods for the Microsoft.AspNetCore.Builder.Extensions.MapMiddleware
.
- Namespace
Microsoft.AspNetCore.Builder
- Assemblies
- Microsoft.AspNetCore.Http.Abstractions
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: - app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
Microsoft.AspNetCore.Builder.IApplicationBuilder
instance. - pathMatch (Microsoft.AspNetCore.Http.PathString) – The request path to match.
- configuration (System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) – The branch to take for positive path matches.
Return type: Returns: The
Microsoft.AspNetCore.Builder.IApplicationBuilder
instance.public static IApplicationBuilder Map(this IApplicationBuilder app, PathString pathMatch, Action<IApplicationBuilder> configuration)
- app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
-