tgstation-server 6.12.0
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
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
90 string DumpFileExtension { get; }
91
96 ValueTask Release();
97
104 ValueTask<TopicResponse?> SendCommand(TopicParameters parameters, CancellationToken cancellationToken);
105
112 ValueTask<bool> SetRebootState(RebootState newRebootState, CancellationToken cancellationToken);
113
118
125 }
126}
Information about an engine installation.
Represents the result of trying to start a DD process.
Parameters necessary for duplicating a ISessionController session.
Provides absolute paths to the latest compiled .dmbs.
Handler for an instance being renamed.
Handles communication with a DreamDaemon IProcess.
ValueTask< bool > SetRebootState(RebootState newRebootState, CancellationToken cancellationToken)
Attempts to change the current RebootState to newRebootState .
Models.CompileJob CompileJob
Gets the CompileJob associated with the ISessionController.
Task OnPrime
A Task that completes when the server calls /world/TgsInitializationComplete().
bool DMApiAvailable
If the DMAPI may be used this session.
ValueTask< TopicResponse?> SendCommand(TopicParameters parameters, CancellationToken cancellationToken)
Sends a command to DreamDaemon through /world/Topic().
IAsyncDisposable ReplaceDmbProvider(IDmbProvider newProvider)
Replace the IDmbProvider in use with a given newProvider , disposing the old one.
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().
bool TerminationWasIntentional
If the DreamDaemon instance sent a.
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().
ValueTask Release()
Releases the IProcess without terminating it. Also calls IDisposable.Dispose.
string DumpFileExtension
The file extension to use for process dumps created from this session.
RebootState
Represents the action to take when /world/Reboot() is called.
Definition RebootState.cs:7
ApiValidationStatus
Status of DMAPI validation.