WebApp.Start Method (String, Action<IAppBuilder>)
Start a web app using default settings and the given url and entry point.
e.g. Discover the ServerFactory and run at the given url.
Namespace: Microsoft.Owin.Hosting
Assembly: Microsoft.Owin.Hosting (in Microsoft.Owin.Hosting.dll)
Syntax
'Declaration
Public Shared Function Start ( _
url As String, _
startup As Action(Of IAppBuilder) _
) As IDisposable
'Usage
Dim url As String
Dim startup As Action(Of IAppBuilder)
Dim returnValue As IDisposable
returnValue = WebApp.Start(url, startup)
public static IDisposable Start(
string url,
Action<IAppBuilder> startup
)
public:
static IDisposable^ Start(
String^ url,
Action<IAppBuilder^>^ startup
)
static member Start :
url:string *
startup:Action<IAppBuilder> -> IDisposable
public static function Start(
url : String,
startup : Action<IAppBuilder>
) : IDisposable
Parameters
- url
Type: System.String
The url.
- startup
Type: System.Action<IAppBuilder>
The entry point.
Return Value
Type: System.IDisposable
An IDisposable instance that can be called to shut down the web app.