AppBuilder.New Method

The New method creates a new instance of an IAppBuilder. This is needed to create a tree structure in your processing, rather than a linear pipeline. The new instance share the same Properties, but will be created with a new, empty middleware list. To create a tangent pipeline you would first call New, followed by several calls to Use on the new builder, ending with a call to Build on the new builder. The return value from Build will be the entry-point to your tangent pipeline. This entry-point may now be added to the main pipeline as an argument to a switching middleware, which will either call the tangent pipeline or the "next app", based on something in the request. That said - all of that work is typically hidden by a middleware like Map, which will do that for you.

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

Syntax

'Declaration
Public Function New As IAppBuilder
'Usage
Dim instance As AppBuilder 
Dim returnValue As IAppBuilder 

returnValue = instance.New()
public IAppBuilder New()
public:
virtual IAppBuilder^ New() sealed
abstract New : unit -> IAppBuilder  
override New : unit -> IAppBuilder
public final function New() : IAppBuilder

Return Value

Type: IAppBuilder
The new instance of the IAppBuilder implementation

Implements

IAppBuilderNew

See Also

Reference

AppBuilder Class

Microsoft.Owin.Builder Namespace