Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Builder.​MapWhenExtensions
Assembly: Microsoft.AspNetCore.Http.Abstractions
Inheritance: object → MapWhenExtensions
Extension methods for the <see cref="T:Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware" /> .
Methods
public static
IApplicationBuilder
MapWhen​(IApplicationBuilder app,
System.​Func<​Http.​HttpContext, bool> predicate,
System.​Action<​IApplicationBuilder> configuration)
Branches the request pipeline based on the result of the given predicate.
predicate
Invoked with the request environment to determine if the branch should be taken
configuration
Configures a branch to take
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object