MapWhenOptions Class¶
Options for the Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware
.
- Namespace
Microsoft.AspNetCore.Builder.Extensions
- Assemblies
- Microsoft.AspNetCore.Http.Abstractions
Properties¶
-
Microsoft.AspNetCore.Builder.Extensions.MapWhenOptions.
Branch
¶ The branch taken for a positive match.
Return type: Microsoft.AspNetCore.Http.RequestDelegate public RequestDelegate Branch { get; set; }
-
Microsoft.AspNetCore.Builder.Extensions.MapWhenOptions.
Predicate
¶ The user callback that determines if the branch should be taken.
Return type: System.Func<Microsoft.AspNetCore.Http.HttpContext> public Func<HttpContext, bool> Predicate { get; set; }
-