Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
WebHostBuilderQuicExtensions.UseQuic Method
Definition
- Namespace:
- Microsoft.AspNetCore.Hosting
- Assembly:
- Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.dll
- Package:
- Microsoft.AspNetCore.App.Ref v10.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.App.Ref v6.0.36
- Package:
- Microsoft.AspNetCore.App.Ref v7.0.5
- Package:
- Microsoft.AspNetCore.App.Ref v8.0.19
- Package:
- Microsoft.AspNetCore.App.Ref v9.0.8
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| 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)
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>)
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
Feedback
Was this page helpful?
