WebHostBuilderHttpSysExtensions.UseHttpSys 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
UseHttpSys(IWebHostBuilder) |
将 Http.sys 指定为 Web 主机要使用的服务器。 |
UseHttpSys(IWebHostBuilder, Action<HttpSysOptions>) |
将 Http.sys 指定为 Web 主机要使用的服务器。 |
UseHttpSys(IWebHostBuilder)
将 Http.sys 指定为 Web 主机要使用的服务器。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseHttpSys(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseHttpSys (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseHttpSys : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseHttpSys (hostBuilder As IWebHostBuilder) As IWebHostBuilder
参数
- hostBuilder
- IWebHostBuilder
要配置的 Microsoft.AspNetCore.Hosting.IWebHostBuilder。
返回
对 IWebHostBuilder 参数对象的引用。
适用于
UseHttpSys(IWebHostBuilder, Action<HttpSysOptions>)
将 Http.sys 指定为 Web 主机要使用的服务器。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseHttpSys(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Server::HttpSys::HttpSysOptions ^> ^ options);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseHttpSys (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.HttpSys.HttpSysOptions> options);
static member UseHttpSys : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.HttpSys.HttpSysOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseHttpSys (hostBuilder As IWebHostBuilder, options As Action(Of HttpSysOptions)) As IWebHostBuilder
参数
- hostBuilder
- IWebHostBuilder
要配置的 Microsoft.AspNetCore.Hosting.IWebHostBuilder。
- options
- Action<HttpSysOptions>
用于配置 Http.sys 选项的回调。
返回
对 IWebHostBuilder 参数对象的引用。