dotnet / dotnet/aspnetcore

Add an IChangeToken to IServerAddressesFeature

Open
#21,246 8 comments 0 reactions 0 assignees View on GitHub
affected-few api-suggestion area-hosting area-networking enhancement severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is your feature request related to a problem? Please describe.

This is a followup to #19376. HttpSys and now Kestrel both support reconfiguring endpoints at runtime. When an endpoint is added or removed, the IServerAddressesFeature is updated to reflect this changes. Unfortunately there is no way to observe when the IServerAddressesFeature changes today.

### Describe the solution you'd like

We should add an IChangeToken to IServerAddressesFeature so app developers can have a way to react to server endpoint reconfiguration.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.