HostingAbstractionsWebHostBuilderExtensions.Start Method

Definition

Start the web host and listen on the specified urls.

C#
public static Microsoft.AspNetCore.Hosting.IWebHost Start (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, params string[] urls);

Parameters

hostBuilder
IWebHostBuilder

The IWebHostBuilder to start.

urls
String[]

The urls the hosted application will listen on.

Returns

The IWebHostBuilder.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0