WebHost.StartWith Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
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
- 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.
The delegate that configures the IApplicationBuilder.
Returns
A started IWebHost that hosts the application.