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.

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

Parameters

hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

Returns

The IWebHostBuilder.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 6.0, 7.0, 8.0, 9.0

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.

C#
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseQuic (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions> configureOptions);

Parameters

hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

configureOptions
Action<QuicTransportOptions>

A callback to configure transport options.

Returns

The IWebHostBuilder.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 6.0, 7.0, 8.0, 9.0