UseAzureAppServices(IWebHostBuilder)
|
将应用程序配置为使用 Azure AppServices 集成。
|
CaptureStartupErrors(IWebHostBuilder, Boolean)
|
设置是否应该在 web 主机的配置设置中捕获启动错误。
启用后,将捕获启动异常并返回错误页。 如果禁用,将传播启动异常。
|
PreferHostingUrls(IWebHostBuilder, Boolean)
|
指示主机是否应侦听上配置的 Url, IWebHostBuilder 而不是在上配置的 url IServer 。
|
Start(IWebHostBuilder, String[])
|
启动 web 宿主并侦听指定的 url。
|
SuppressStatusMessages(IWebHostBuilder, Boolean)
|
指定是否应抑制启动状态消息。
|
UseConfiguration(IWebHostBuilder, IConfiguration)
|
使用 web 主机上的指定配置设置。
|
UseContentRoot(IWebHostBuilder, String)
|
指定 web 主机要使用的内容根目录。
|
UseEnvironment(IWebHostBuilder, String)
|
指定 web 主机要使用的环境。
|
UseServer(IWebHostBuilder, IServer)
|
指定 web 主机要使用的服务器。
|
UseShutdownTimeout(IWebHostBuilder, TimeSpan)
|
指定等待 web 主机关闭的时间长度。
|
UseStartup(IWebHostBuilder, String)
|
指定包含 web 主机要使用的启动类型的程序集。
|
UseUrls(IWebHostBuilder, String[])
|
指定 web 宿主要侦听的 url。
|
UseWebRoot(IWebHostBuilder, String)
|
指定 web 主机要使用的 webroot 目录。
|
Configure(IWebHostBuilder, Action<IApplicationBuilder>)
|
指定要用于配置 web 应用程序的启动方法。
|
Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)
|
指定要用于配置 web 应用程序的启动方法。
|
ConfigureAppConfiguration(IWebHostBuilder, Action<IConfigurationBuilder>)
|
添加一个委托,用于配置 IConfigurationBuilder 将构造的 IConfiguration 。
|
ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)
|
添加一个委托来配置提供的 LoggerFactory。 这可多次进行调用。
|
ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)
|
添加一个委托来配置提供的 ILoggingBuilder。 这可多次进行调用。
|
UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)
|
配置默认服务提供程序
|
UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)
|
配置默认服务提供程序
|
UseStartup(IWebHostBuilder, Type)
|
指定 web 主机要使用的启动类型。
|
UseStartup<TStartup>(IWebHostBuilder)
|
指定 web 主机要使用的启动类型。
|
UseStartup<TStartup>(IWebHostBuilder, Func<WebHostBuilderContext,TStartup>)
|
指定一个工厂,该工厂创建 web 主机要使用的启动实例。
|
UseStaticWebAssets(IWebHostBuilder)
|
将配置 WebRootFileProvider 为使用由引用的项目和包定义的静态 web 资产。
|
UseHttpSys(IWebHostBuilder)
|
指定Http.sys作为 Web 主机使用的服务器。
|
UseHttpSys(IWebHostBuilder, Action<HttpSysOptions>)
|
指定Http.sys作为 Web 主机使用的服务器。
|
UseIIS(IWebHostBuilder)
|
配置在 AspNetCoreModule 后运行服务器时应侦听的端口和基路径。
该应用还将配置为捕获启动错误。
|
UseIISIntegration(IWebHostBuilder)
|
配置在 AspNetCoreModule 后运行服务器时应侦听的端口和基路径。
该应用还将配置为捕获启动错误。
|
ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)
|
配置 Kestrel 选项,但不注册 IServer。 请参阅 UseKestrel(IWebHostBuilder)。
|
ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)
|
配置 Kestrel 选项,但不注册 IServer。 请参阅 UseKestrel(IWebHostBuilder)。
|
UseKestrel(IWebHostBuilder)
|
指定 Kestrel 作为 Web 主机使用的服务器。
|
UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)
|
指定 Kestrel 作为 Web 主机使用的服务器。
|
UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)
|
指定 Kestrel 作为 Web 主机使用的服务器。
|
UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)
|
指定 Kestrel 作为 Web 主机使用的服务器。
|
UseLibuv(IWebHostBuilder)
|
已过时。
指定 Libuv 作为要由 Kestrel 使用的传输。
|
UseLibuv(IWebHostBuilder, Action<LibuvTransportOptions>)
|
已过时。
指定 Libuv 作为要由 Kestrel 使用的传输。
|
UseQuic(IWebHostBuilder)
|
UseQuic(IWebHostBuilder, Action<QuicTransportOptions>)
|
UseQuic(IWebHostBuilder)
|
UseQuic(IWebHostBuilder, Action<QuicTransportOptions>)
|
UseSockets(IWebHostBuilder)
|
指定套接字作为要由 Kestrel 使用的传输。
|
UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)
|
指定套接字作为要由 Kestrel 使用的传输。
|
UseWebListener(IWebHostBuilder)
|
将 WebListener 指定为要由 web 主机使用的服务器。
|
UseWebListener(IWebHostBuilder, Action<WebListenerOptions>)
|
将 WebListener 指定为要由 web 主机使用的服务器。
|
ConfigureTestContainer<TContainer>(IWebHostBuilder, Action<TContainer>)
|
使用 IWebHostBuilder 中提供的服务配置 实例 servicesConfiguration 。
|
ConfigureTestServices(IWebHostBuilder, Action<IServiceCollection>)
|
使用 IWebHostBuilder 中提供的服务配置 实例 servicesConfiguration 。
|
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)
|
设置 相对于 的内容根 solutionRelativePath 目录。
|
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)
|
设置 相对于 的内容根 solutionRelativePath 目录。
|
UseTestServer(IWebHostBuilder)
|
启用 TestServer 服务。
|
UseTestServer(IWebHostBuilder, Action<TestServerOptions>)
|
启用 TestServer 服务。
|