tgstation-server
The /tg/station 13 server suite
ISessionController.cs
Go to the documentation of this file.
1 using System.Threading;
2 using System.Threading.Tasks;
4 
5 namespace Tgstation.Server.Host.Components.Watchdog
6 {
11  {
15  Task<LaunchResult> LaunchResult { get; }
16 
20  bool IsPrimary { get; }
21 
25  bool TerminationWasRequested { get; }
26 
31 
35  IDmbProvider Dmb { get; }
36 
40  ushort? Port { get; }
41 
45  bool ClosePortOnReboot { get; set; }
46 
51 
55  Task OnReboot { get; }
56 
61  ReattachInformation Release();
62 
69  Task<string> SendCommand(string command, CancellationToken cancellationToken);
70 
77  Task<bool> SetPort(ushort newPort, CancellationToken cancellatonToken);
78 
85  Task<bool> SetRebootState(RebootState newRebootState, CancellationToken cancellationToken);
86 
90  void ResetRebootState();
91 
95  void EnableCustomChatCommands();
96  }
97 }
Represents the result of trying to start a DD process
Definition: LaunchResult.cs:9
Handles communication with a DreamDaemon IProcess
Represents process lifetime
Definition: IProcessBase.cs:9
Provides absolute paths to the latest compiled .dmbs
Definition: IDmbProvider.cs:9
RebootState
Represents the action to take when /world/Reboot() is called
Definition: RebootState.cs:6
Parameters necessary for duplicating a ISessionController session
ApiValidationStatus
Status of DMAPI validation