WebHost.StartWith Method

Definition

Overloads

StartWith(Action<IApplicationBuilder>)

Initializes and starts a new IWebHost with pre-configured defaults. See CreateDefaultBuilder() for details.

StartWith(String, Action<IApplicationBuilder>)

Initializes and starts a new IWebHost with pre-configured defaults. See CreateDefaultBuilder() for details.

StartWith(Action<IApplicationBuilder>)

Source:
WebHost.cs
Source:
WebHost.cs

Initializes and starts a new IWebHost with pre-configured defaults. See CreateDefaultBuilder() for details.

public:
 static Microsoft::AspNetCore::Hosting::IWebHost ^ StartWith(Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ app);
public static Microsoft.AspNetCore.Hosting.IWebHost StartWith (Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> app);
static member StartWith : Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHost
Public Shared Function StartWith (app As Action(Of IApplicationBuilder)) As IWebHost

Parameters

app
Action<IApplicationBuilder>

The delegate that configures the IApplicationBuilder.

Returns

A started IWebHost that hosts the application.

Applies to

StartWith(String, Action<IApplicationBuilder>)

Source:
WebHost.cs
Source:
WebHost.cs

Initializes and starts a new IWebHost with pre-configured defaults. See CreateDefaultBuilder() for details.

public:
 static Microsoft::AspNetCore::Hosting::IWebHost ^ StartWith(System::String ^ url, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ app);
public static Microsoft.AspNetCore.Hosting.IWebHost StartWith (string url, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> app);
static member StartWith : string * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHost
Public Shared Function StartWith (url As String, app As Action(Of IApplicationBuilder)) As IWebHost

Parameters

url
String

The URL the hosted application will listen on.

app
Action<IApplicationBuilder>

The delegate that configures the IApplicationBuilder.

Returns

A started IWebHost that hosts the application.

Applies to