Update kestrel.md (#15801)

* Update kestrel.md

* Update kestrel.md

* Update aspnetcore/fundamentals/servers/kestrel.md

Co-Authored-By: Luke Latham <1622880+guardrex@users.noreply.github.com>
pull/15804/head
Rick Anderson 2019-11-20 15:49:38 -10:00 committed by GitHub
parent b7d6a86d3e
commit 2719b82ee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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 <xref:Microsoft.AspNetCore.Hosting.WebHostBuilderKestrelExtensions.UseKestrel*> behind the scenes.
ASP.NET Core project templates use Kestrel by default. In *Program.cs*, the
<xref:Microsoft.Extensions.Hosting.GenericHostBuilderExtensions.ConfigureWebHostDefaults*> method calls <xref:Microsoft.AspNetCore.Hosting.WebHostBuilderKestrelExtensions.UseKestrel*>:
[!code-csharp[](kestrel/samples/3.x/KestrelSample/Program.cs?name=snippet_DefaultBuilder&highlight=8)]