AppBuilderUseExtensions.Run Method (IAppBuilder, Func<IOwinContext, Task>)
Inserts into the OWIN pipeline a middleware which does not have a next middleware reference.
Namespace: Owin
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
Syntax
public static void Run(
this IAppBuilder app,
Func<IOwinContext, Task> handler
)
public:
[ExtensionAttribute]
static void Run(
IAppBuilder^ app,
Func<IOwinContext^, Task^>^ handler
)
static member Run :
app:IAppBuilder *
handler:Func<IOwinContext, Task> -> unit
<ExtensionAttribute>
Public Shared Sub Run (
app As IAppBuilder,
handler As Func(Of IOwinContext, Task)
)
Parameters
- app
Type: Owin.IAppBuilder
handler
Type: System.Func<IOwinContext, Task>An app that handles all requests
See Also
AppBuilderUseExtensions Class
Owin Namespace
Return to top