Skip to content
代码片段 群组 项目
未验证 提交 0286358c 编辑于 作者: William Godbe's avatar William Godbe 提交者: GitHub
浏览文件

Mark public Quic API as preview (#35307)

上级 24ea7ef4
No related branches found
No related tags found
无相关合并请求
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
using System; using System;
using System.Buffers; using System.Buffers;
using System.Runtime.Versioning;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
using Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Internal; using Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Internal;
...@@ -11,6 +12,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Quic ...@@ -11,6 +12,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Quic
/// <summary> /// <summary>
/// Options for Quic based connections. /// Options for Quic based connections.
/// </summary> /// </summary>
[RequiresPreviewFeatures]
public class QuicTransportOptions public class QuicTransportOptions
{ {
/// <summary> /// <summary>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
using System; using System;
using System.Net.Quic; using System.Net.Quic;
using System.Runtime.Versioning;
using Microsoft.AspNetCore.Connections; using Microsoft.AspNetCore.Connections;
using Microsoft.AspNetCore.Server.Kestrel.Transport.Quic; using Microsoft.AspNetCore.Server.Kestrel.Transport.Quic;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
...@@ -14,6 +15,7 @@ namespace Microsoft.AspNetCore.Hosting ...@@ -14,6 +15,7 @@ namespace Microsoft.AspNetCore.Hosting
/// </summary> /// </summary>
public static class WebHostBuilderQuicExtensions public static class WebHostBuilderQuicExtensions
{ {
[RequiresPreviewFeatures]
public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder) public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder)
{ {
if (QuicImplementationProviders.Default.IsSupported) if (QuicImplementationProviders.Default.IsSupported)
...@@ -27,6 +29,7 @@ namespace Microsoft.AspNetCore.Hosting ...@@ -27,6 +29,7 @@ namespace Microsoft.AspNetCore.Hosting
return hostBuilder; return hostBuilder;
} }
[RequiresPreviewFeatures]
public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder, Action<QuicTransportOptions> configureOptions) public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder, Action<QuicTransportOptions> configureOptions)
{ {
return hostBuilder.UseQuic().ConfigureServices(services => return hostBuilder.UseQuic().ConfigureServices(services =>
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册