WebHost WebHost WebHost Class

Definition

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

public static class WebHost
type WebHost = class
Public Class WebHost
Inheritance
WebHostWebHostWebHost

Methods

CreateDefaultBuilder() CreateDefaultBuilder() CreateDefaultBuilder()

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

CreateDefaultBuilder(String[]) CreateDefaultBuilder(String[]) CreateDefaultBuilder(String[])

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

CreateDefaultBuilder<TStartup>(String[]) CreateDefaultBuilder<TStartup>(String[]) CreateDefaultBuilder<TStartup>(String[])

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

Start(RequestDelegate) Start(RequestDelegate) Start(RequestDelegate)

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

Start(Action<IRouteBuilder>) Start(Action<IRouteBuilder>) Start(Action<IRouteBuilder>)

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

Start(String, RequestDelegate) Start(String, RequestDelegate) Start(String, RequestDelegate)

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

Start(String, Action<IRouteBuilder>) Start(String, Action<IRouteBuilder>) Start(String, Action<IRouteBuilder>)

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

StartWith(Action<IApplicationBuilder>) StartWith(Action<IApplicationBuilder>) StartWith(Action<IApplicationBuilder>)

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

StartWith(String, Action<IApplicationBuilder>) StartWith(String, Action<IApplicationBuilder>) StartWith(String, Action<IApplicationBuilder>)

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

Applies to