MapWhenExtensions MapWhenExtensions Class

Extension methods for the MapWhenMiddleware.

Syntax

Declaration

public static class MapWhenExtensionsPublic Module MapWhenExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • MapWhenExtensions
    MapWhenExtensions

Inherited Members

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

Methods summary

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

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

    Returns

Details

Assembly

Microsoft.AspNetCore.Http.Abstractions.dll