tgstation-server  4.4.0
The /tg/station 13 server suite
IServerControl.cs
Go to the documentation of this file.
1 using System;
2 using System.Threading;
3 using System.Threading.Tasks;
4 using Tgstation.Server.Host.IO;
5 
6 namespace Tgstation.Server.Host.Core
7 {
11  public interface IServerControl
12  {
16  bool WatchdogPresent { get; }
17 
25  bool ApplyUpdate(Version version, Uri updateZipUrl, IIOManager ioManager);
26 
32  IRestartRegistration RegisterForRestart(IRestartHandler handler);
33 
38  Task Restart();
39 
45  Task Die(Exception exception);
46  }
47 }
Interface for using filesystems
Definition: IIOManager.cs:11
Represents the lifetime of a IRestartHandler registration
Represents a service that may take an updated Host assembly and run it, stopping the current assembly...