WebHostBuilderHttpSysExtensions.UseHttpSys 方法

定义

重载

UseHttpSys(IWebHostBuilder)

将 Http.sys 指定为 Web 主机要使用的服务器。

UseHttpSys(IWebHostBuilder, Action<HttpSysOptions>)

将 Http.sys 指定为 Web 主机要使用的服务器。

UseHttpSys(IWebHostBuilder)

Source:
WebHostBuilderHttpSysExtensions.cs
Source:
WebHostBuilderHttpSysExtensions.cs
Source:
WebHostBuilderHttpSysExtensions.cs

将 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>)

Source:
WebHostBuilderHttpSysExtensions.cs
Source:
WebHostBuilderHttpSysExtensions.cs
Source:
WebHostBuilderHttpSysExtensions.cs

将 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 参数对象的引用。

适用于