Closed
Description
Is your feature request related to a problem? Please describe.
It's common for an application to add, remove, or reconfigure endpoints via config. That works today for Kestrel but it requires restarting the application to pick up the changes.
For reference, HttpSys supports live adding or removing endpoints in code, but not in config.
aspnetcore/src/Servers/HttpSys/samples/HotAddSample/Startup.cs
Lines 24 to 41 in f6c89c2
Describe the solution you'd like
Have Kestrel's custom configuration binder register for config reload notifications. On config change it would need to diff the changes and update its endpoints. Removing an endpoint should also cause existing connections for that endpoint to gracefully drain and close.