WebHost Class
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.
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. |