MapWhenExtensions.MapWhenAsync Method (IAppBuilder, Func<IOwinContext, Task<Boolean>>, Action<IAppBuilder>)

 

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

Namespace:   Owin
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Syntax

public static IAppBuilder MapWhenAsync(
    this IAppBuilder app,
    Func<IOwinContext, Task<bool>> predicate,
    Action<IAppBuilder> configuration
)
public:
[ExtensionAttribute]
static IAppBuilder^ MapWhenAsync(
    IAppBuilder^ app,
    Func<IOwinContext^, Task<bool>^>^ predicate,
    Action<IAppBuilder^>^ configuration
)
static member MapWhenAsync : 
        app:IAppBuilder *
        predicate:Func<IOwinContext, Task<bool>> *
        configuration:Action<IAppBuilder> -> IAppBuilder
<ExtensionAttribute>
Public Shared Function MapWhenAsync (
    app As IAppBuilder,
    predicate As Func(Of IOwinContext, Task(Of Boolean)),
    configuration As Action(Of IAppBuilder)
) As IAppBuilder

Parameters

  • app
    Type: Owin.IAppBuilder
  • configuration
    Type: System.Action<IAppBuilder>

    Configures a branch to take

Return Value

Type: Owin.IAppBuilder

Returns IAppBuilder.

See Also

MapWhenExtensions Class
Owin Namespace

Return to top