Share via


WebHost Class

Definition

Provides convenience methods for creating instances of IWebHost and IWebHostBuilder with pre-configured defaults.

public ref class WebHost abstract sealed
public static class WebHost
type WebHost = class
Public Class WebHost
Inheritance
WebHost

Methods

CreateDefaultBuilder()

Initializes a new instance of the WebHostBuilder class with pre-configured defaults.

CreateDefaultBuilder(String[])

Initializes a new instance of the WebHostBuilder class with pre-configured defaults.

CreateDefaultBuilder<TStartup>(String[])

Initializes a new instance of the WebHostBuilder class with pre-configured defaults using typed Startup.

Start(Action<IRouteBuilder>)

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

Start(RequestDelegate)

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

Start(String, Action<IRouteBuilder>)

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

Start(String, RequestDelegate)

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

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.

Applies to