MapWhenExtensions Class

Definition

Extension methods for the MapWhenMiddleware.

public static class MapWhenExtensions
Inheritance
MapWhenExtensions

Methods

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

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