2using System.Threading.Tasks;
54 Task
Die(Exception exception);
Handler for server restarts.
Represents the lifetime of a IRestartHandler registration.
Represents a service that may take an updated Host assembly and run it, stopping the current assembly...
Task GracefulShutdown(bool detach)
Gracefully shutsdown the Host.
Task Restart()
Restarts the Host.
bool WatchdogPresent
true if live updates are supported, false. TryStartUpdate(IServerUpdateExecutor, Version) and Restart...
Task Die(Exception exception)
Kill the server with a fatal exception.
IRestartRegistration RegisterForRestart(IRestartHandler handler)
Register a given handler to run before stopping the server for a restart.
bool UpdateInProgress
Whether or not the server is currently updating.
bool TryStartUpdate(IServerUpdateExecutor updateExecutor, Version newVersion)
Attempt to update with a given updateExecutor .
Executes server update operations.