-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support add/remove sockets on running servers
- Make it possible to add and remove socket listeners to already running servers. Relies on the existing methods, just adds and removes "RunningListeners" as needed. Backed by Dictionary instead of List to simplify lookups - Handle concurrency by using a SemaphorSlim, similar to how it's done in Kestrel - Added equivalent methods to ServerHostedService, since the Server itself isn't accessible. - Added some test coverage for the new behavior.
- Loading branch information
Showing
3 changed files
with
273 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.