Map​When​Extensions Map​When​Extensions Class

Definition

Extension methods for the MapWhenMiddleware.
public static class MapWhenExtensionsPublic Module MapWhenExtensions
Inheritance
System.ObjectSystem.Object
MapWhenExtensionsMapWhenExtensions

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Methods

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

Branches the request pipeline based on the result of the given predicate.
public static IApplicationBuilder MapWhen(this IApplicationBuilder app, Func<HttpContext, bool> predicate, Action<IApplicationBuilder> configuration)<ExtensionAttribute>
Public Shared Function MapWhen(app As IApplicationBuilder, predicate As Func(Of HttpContext, Boolean), configuration As Action(Of IApplicationBuilder)) As IApplicationBuilder
Parameters
predicate
System.Func<HttpContext, System.Boolean> System.Func(Of HttpContext, System.Boolean)
Invoked with the request environment to determine if the branch should be taken
configuration
System.Action<IApplicationBuilder> System.Action(Of IApplicationBuilder)
Configures a branch to take
Returns