Fix example code highlight (#16317)
parent
a28672de73
commit
399a360bad
|
@ -5,7 +5,7 @@ description: Learn about Kestrel, the cross-platform web server for ASP.NET Core
|
|||
monikerRange: '>= aspnetcore-2.1'
|
||||
ms.author: riande
|
||||
ms.custom: mvc
|
||||
ms.date: 12/18/2019
|
||||
ms.date: 12/26/2019
|
||||
uid: fundamentals/servers/kestrel
|
||||
---
|
||||
# Kestrel web server implementation in ASP.NET Core
|
||||
|
@ -647,7 +647,7 @@ webBuilder.ConfigureKestrel(serverOptions =>
|
|||
|
||||
The <xref:Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions.Listen*> method binds to a TCP socket, and an options lambda permits X.509 certificate configuration:
|
||||
|
||||
[!code-csharp[](kestrel/samples/3.x/KestrelSample/Program.cs?name=snippet_TCPSocket&highlight=9-16)]
|
||||
[!code-csharp[](kestrel/samples/3.x/KestrelSample/Program.cs?name=snippet_TCPSocket&highlight=12-18)]
|
||||
|
||||
The example configures HTTPS for an endpoint with <xref:Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions>. Use the same API to configure other Kestrel settings for specific endpoints.
|
||||
|
||||
|
|
Loading…
Reference in New Issue