WebHostBuilderHttpSysExtensions.UseHttpSys Method

Definition

Overloads

UseHttpSys(IWebHostBuilder)

Specify Http.sys as the server to be used by the web host.

UseHttpSys(IWebHostBuilder, Action<HttpSysOptions>)

Specify Http.sys as the server to be used by the web host.

UseHttpSys(IWebHostBuilder)

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

Specify Http.sys as the server to be used by the web host.

C#
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseHttpSys (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);

Parameters

hostBuilder
IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

Returns

A reference to the IWebHostBuilder parameter object.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

UseHttpSys(IWebHostBuilder, Action<HttpSysOptions>)

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

Specify Http.sys as the server to be used by the web host.

C#
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseHttpSys (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.HttpSys.HttpSysOptions> options);

Parameters

hostBuilder
IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

options
Action<HttpSysOptions>

A callback to configure Http.sys options.

Returns

A reference to the IWebHostBuilder parameter object.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0