Open
Description
Is your feature request related to a problem? Please describe.
This is a followup to #19376. Kestrel should support a programmatic API for adding and removing endpoints with code in addition to config.
For reference, here's how it looks with HttpSys:
aspnetcore/src/Servers/HttpSys/samples/HotAddSample/Startup.cs
Lines 24 to 41 in f6c89c2
Describe the solution you'd like
We should probably have APIs similar to KestrelServerOptions.Listen* that work even after the server has started. We'll also need an API to query active endpoints and remove them. Perhaps IServerAddressesFeature could be leveraged for this.
Metadata
Metadata
Assignees
Labels
This issue impacts only small number of customersEarly API idea and discussion, it is NOT ready for implementationIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsThis issue represents an ask for new feature or an enhancement to an existing oneThis issue is related to work on yarpThis label is used by an internal tool