MapWhenExtensions MapWhenExtensions MapWhenExtensions Class

Definition

Extension methods for the MapWhenMiddleware.

public static class MapWhenExtensions
type MapWhenExtensions = class
Public Module MapWhenExtensions
Inheritance
MapWhenExtensionsMapWhenExtensionsMapWhenExtensions

Methods

MapWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>) MapWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>) MapWhen(IApplicationBuilder, Func<HttpContext,Boolean>, Action<IApplicationBuilder>)

Branches the request pipeline based on the result of the given predicate.

Applies to