diff --git a/aspnetcore/fundamentals/servers/kestrel.md b/aspnetcore/fundamentals/servers/kestrel.md index 92b110bbac..6090a1f064 100644 --- a/aspnetcore/fundamentals/servers/kestrel.md +++ b/aspnetcore/fundamentals/servers/kestrel.md @@ -75,9 +75,10 @@ A reverse proxy: > [!WARNING] > Hosting in a reverse proxy configuration requires [host filtering](#host-filtering). -## How to use Kestrel in ASP.NET Core apps +## Kestrel in ASP.NET Core apps -ASP.NET Core project templates use Kestrel by default. In *Program.cs*, the app calls `ConfigureWebHostDefaults`, which calls behind the scenes. +ASP.NET Core project templates use Kestrel by default. In *Program.cs*, the + method calls : [!code-csharp[](kestrel/samples/3.x/KestrelSample/Program.cs?name=snippet_DefaultBuilder&highlight=8)]