tgstation-server 5.12.7
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ISessionController.cs
Go to the documentation of this file.
1using System;
2using System.Threading;
3using System.Threading.Tasks;
4
9
11{
16 {
20 Task<LaunchResult> LaunchResult { get; }
21
26
31
35 Version DMApiVersion { get; }
36
41
46
50 bool ClosePortOnReboot { get; set; }
51
56
61
65 Task OnStartup { get; }
66
70 Task OnReboot { get; }
71
75 Task RebootGate { set; }
76
80 Task OnPrime { get; }
81
85 bool DMApiAvailable { get; }
86
91 Task Release();
92
99 Task<TopicResponse> SendCommand(TopicParameters parameters, CancellationToken cancellationToken);
100
107 Task<bool> SetPort(ushort newPort, CancellationToken cancellatonToken);
108
115 Task<bool> SetRebootState(RebootState newRebootState, CancellationToken cancellationToken);
116
121
126
133 }
134}
Represents the result of trying to start a DD process.
Definition: LaunchResult.cs:10
Parameters necessary for duplicating a ISessionController session.
Provides absolute paths to the latest compiled .dmbs.
Definition: IDmbProvider.cs:11
Handler for an instance being renamed.
Handles communication with a DreamDaemon IProcess.
Task Release()
Releases the IProcess without terminating it. Also calls IDisposable.Dispose.
void EnableCustomChatCommands()
Enables the reading of custom chat commands from the ISessionController.
Task< bool > SetRebootState(RebootState newRebootState, CancellationToken cancellationToken)
Attempts to change the current RebootState to newRebootState .
Task OnPrime
A Task that completes when the server calls /world/TgsInitializationComplete().
bool DMApiAvailable
If the DMAPI may be used this session.
Task RebootGate
A Task that must complete before a TgsReboot() bridge request can complete.
void ResetRebootState()
Changes RebootState to RebootState.Normal without telling the DMAPI.
Task OnReboot
A Task that completes when the server calls /world/TgsReboot().
Task< bool > SetPort(ushort newPort, CancellationToken cancellatonToken)
Causes the world to start listening on a newPort .
bool ProcessingRebootBridgeRequest
If the ISessionController is currently processing a bridge request from TgsReboot().
Task OnStartup
A Task that completes when the server calls /world/TgsNew().
bool TerminationWasRequested
If the DreamDaemon instance sent a.
bool ClosePortOnReboot
If the port should be rotated off when the world reboots.
IDisposable ReplaceDmbProvider(IDmbProvider newProvider)
Replace the IDmbProvider in use with a given newProvider , disposing the old one.
Task< TopicResponse > SendCommand(TopicParameters parameters, CancellationToken cancellationToken)
Sends a command to DreamDaemon through /world/Topic().
Represents process lifetime.
Definition: IProcessBase.cs:10
RebootState
Represents the action to take when /world/Reboot() is called.
Definition: RebootState.cs:7
ApiValidationStatus
Status of DMAPI validation.