Skip to content

Commit f708a3d

Browse files
authored
Apply suggestions from code review
1 parent f347122 commit f708a3d

File tree

2 files changed

+3
-3
lines changed
  • aspnetcore/fundamentals/servers/kestrel

2 files changed

+3
-3
lines changed

aspnetcore/fundamentals/servers/kestrel/http3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ For more information, see <xref:fundamentals/servers/kestrel/endpoints>.
6969

7070
QUIC transport options can be configured by calling the <xref:Microsoft.AspNetCore.Hosting.WebHostBuilderQuicExtensions.UseQuic%2A> extension method on <xref:Microsoft.AspNetCore.Hosting.IWebHostBuilder>.
7171

72-
:::code language="csharp" source="samples/6.x/KestrelSample/Snippets/Program.cs" id="snippet_UseQuicWithOptions" highlight="4-6":::
72+
:::code language="csharp" source="samples/6.x/KestrelSample/Snippets/Program.cs" id="snippet_UseQuicWithOptions" highlight="3-8":::
7373

7474
The following table describes the available <xref:Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions>:
7575

aspnetcore/fundamentals/servers/kestrel/samples/6.x/KestrelSample/Snippets/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,12 +602,12 @@ public static void UseQuicWithOptions(string[] args)
602602
// <snippet_UseQuicWithOptions>
603603
var builder = WebApplication.CreateBuilder(args);
604604

605-
#pragma warning disable CA2252 // Using preview features
606605
builder.WebHost.UseQuic(options =>
607606
{
607+
#pragma warning disable CA2252 // Using preview features
608608
options.MaxBidirectionalStreamCount = 200;
609-
});
610609
#pragma warning restore CA2252
610+
});
611611

612612
builder.WebHost.ConfigureKestrel((context, serverOptions) =>
613613
{

0 commit comments

Comments
 (0)