MapWhenExtensions::MapWhen Method
Branches the request pipeline based on the result of the given predicate.
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
[ExtensionAttribute] public: static IAppBuilder^ MapWhen( IAppBuilder^ app, Func<IOwinContext^, bool>^ predicate, Action<IAppBuilder^>^ configuration )
Parameters
- app
- Type: IAppBuilder
- predicate
- Type: System::Func<IOwinContext, Boolean>
Invoked with the request environment to determine if the branch should be taken
- configuration
- Type: System::Action<IAppBuilder>
Configures a branch to take
Return Value
Type: IAppBuilderUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).aspx.
Show: