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
parent
b7d6a86d3e
commit
2719b82ee3
|
@ -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)]
|
||||
|
||||
|
|
Loading…
Reference in New Issue