diff --git a/aspnetcore/fundamentals/servers/kestrel/endpoints.md b/aspnetcore/fundamentals/servers/kestrel/endpoints.md index fc13a6146b..b46e2a01a5 100644 --- a/aspnetcore/fundamentals/servers/kestrel/endpoints.md +++ b/aspnetcore/fundamentals/servers/kestrel/endpoints.md @@ -62,9 +62,11 @@ webBuilder.ConfigureKestrel(serverOptions => ## Configure(IConfiguration) -Creates a configuration loader for setting up Kestrel that takes an as input. The configuration must be scoped to the configuration section for Kestrel. +Enables Kestrel to load endpoints from an . The configuration must be scoped to the configuration section for Kestrel. -`CreateDefaultBuilder` calls `Configure(context.Configuration.GetSection("Kestrel"))` by default to load Kestrel configuration. +The `Configure(IConfiguration, bool)` overload can be used to enable reloading endpoints when the configuration source changes. + +`IHostBuilder.ConfigureWebHostDefaults` calls `Configure(context.Configuration.GetSection("Kestrel"), reloadOnChange: true)` by default to load Kestrel configuration and enable reloading. ```json { @@ -85,6 +87,13 @@ Creates a configuration loader for setting up Kestrel that takes an ) Specifies a configuration `Action` to run for each HTTPS endpoint. Calling `ConfigureHttpsDefaults` multiple times replaces prior `Action`s with the last `Action` specified.