-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce a new Server API #15006
Comments
Some things that have come up when trying to implement this API in Kestrel itself:
|
This comment has been minimized.
This comment has been minimized.
This won't work with the current way WebHost interacts with IServer, since WebHost controls the shutdown timeout by tripping the CancellationToken passed to IServer.StopAsync(token) instead of passing in a TimeSpan. |
@gfoidl fixed. |
@halter73 good point, the token passed into StopAsync would suffice then. Removed it |
@davidfowl do you think these kinds of bedrock issues should be transferred to https://github.com/davidfowl/BedrockFramework? |
Yes we can close this. |
Servers typically need to do a set of common tasks:
The goal of the server API is to:
Usage looks like this:
With some syntax sugar, I expect it to look like this:
The text was updated successfully, but these errors were encountered: