Delen via


WebHostBuilderQuicExtensions.UseQuic Method

Definition

Overloads

UseQuic(IWebHostBuilder)

Specify Quic as the transport to be used by Kestrel.

UseQuic(IWebHostBuilder, Action<QuicTransportOptions>)

Specify Quic as the transport to be used by Kestrel.

UseQuic(IWebHostBuilder)

Source:
WebHostBuilderQuicExtensions.cs

Note

To use this preview API, you must enable preview features in your project by setting the EnablePreviewFeatures property to True in your project file. For more information, see https://aka.ms/dotnet-preview-features.

Specify Quic as the transport to be used by 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

Parameters

hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

Returns

The IWebHostBuilder.

Applies to

UseQuic(IWebHostBuilder, Action<QuicTransportOptions>)

Source:
WebHostBuilderQuicExtensions.cs

Note

To use this preview API, you must enable preview features in your project by setting the EnablePreviewFeatures property to True in your project file. For more information, see https://aka.ms/dotnet-preview-features.

Specify Quic as the transport to be used by 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

Parameters

hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

configureOptions
Action<QuicTransportOptions>

A callback to configure transport options.

Returns

The IWebHostBuilder.

Applies to