WebHostBuilderQuicExtensions.UseQuic 方法

定义

重载

UseQuic(IWebHostBuilder)

将 Quic 指定为 Kestrel 要使用的传输。

UseQuic(IWebHostBuilder, Action<QuicTransportOptions>)

将 Quic 指定为 Kestrel 要使用的传输。

UseQuic(IWebHostBuilder)

Source:
WebHostBuilderQuicExtensions.cs

注意

若要使用此预览 API,必须通过在项目文件中将 EnablePreviewFeatures 属性设置为 True,在项目中启用预览功能。 有关详细信息,请参阅 https://aka.ms/dotnet-preview-features

将 Quic 指定为 Kestrel 要使用的传输。

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseQuic (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseQuic : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseQuic (hostBuilder As IWebHostBuilder) As IWebHostBuilder

参数

hostBuilder
IWebHostBuilder

要配置的 IWebHostBuilder

返回

IWebHostBuilder

适用于

UseQuic(IWebHostBuilder, Action<QuicTransportOptions>)

Source:
WebHostBuilderQuicExtensions.cs

注意

若要使用此预览 API,必须通过在项目文件中将 EnablePreviewFeatures 属性设置为 True,在项目中启用预览功能。 有关详细信息,请参阅 https://aka.ms/dotnet-preview-features

将 Quic 指定为 Kestrel 要使用的传输。

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseQuic (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions> configureOptions);
static member UseQuic : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseQuic (hostBuilder As IWebHostBuilder, configureOptions As Action(Of QuicTransportOptions)) As IWebHostBuilder

参数

hostBuilder
IWebHostBuilder

要配置的 IWebHostBuilder

configureOptions
Action<QuicTransportOptions>

用于配置传输选项的回调。

返回

IWebHostBuilder

适用于