tgstation-server 5.12.7
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IServerControl.cs
Go to the documentation of this file.
1using System;
2using System.Threading.Tasks;
3
5{
9 public interface IServerControl
10 {
14 bool WatchdogPresent { get; }
15
19 bool UpdateInProgress { get; }
20
27 bool TryStartUpdate(IServerUpdateExecutor updateExecutor, Version newVersion);
28
35
40 Task Restart();
41
47 Task GracefulShutdown(bool detach);
48
54 Task Die(Exception exception);
55 }
56}
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.
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 .