Host Extensions Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains extensions for managing the lifecycle of an IWebHost.
public ref class WebHostExtensions abstract sealed
public static class WebHostExtensions
type WebHostExtensions = class
Public Module WebHostExtensions
Runs a web application and block the calling thread until host shutdown.
Runs a web application and block the calling thread until token is triggered or shutdown is triggered.
Runs a web application and returns a Task that only completes when the token is triggered or shutdown is triggered.
Attempts to gracefully stop the host with the given timeout.
Block the calling thread until shutdown is triggered via Ctrl+C or SIGTERM.
Returns a Task that completes when shutdown is triggered via the given token, Ctrl+C or SIGTERM.