3 using System.Threading.Tasks;
18 public bool IsPrimary =>
false;
21 public bool TerminationWasRequested =>
false;
30 public ushort? Port => null;
33 public bool ClosePortOnReboot
36 set =>
throw new NotSupportedException();
43 public Task OnReboot {
get; }
46 public Task OnPrime {
get; }
49 public Task<int> Lifetime {
get; }
52 public Version DMApiVersion =>
throw new NotSupportedException();
70 Dmb = dmbProvider ??
throw new ArgumentNullException(nameof(dmbProvider));
73 StartupTime = TimeSpan.FromSeconds(0)
75 Lifetime = Task.FromResult(-1);
76 OnReboot = Extensions.TaskExtensions.InfiniteTask();
77 OnPrime = Extensions.TaskExtensions.InfiniteTask();
78 disposeLock =
new object();
95 public void EnableCustomChatCommands() =>
throw new NotSupportedException();
101 public void ResetRebootState() =>
throw new NotSupportedException();
104 public Task<CombinedTopicResponse> SendCommand(
TopicParameters parameters, CancellationToken cancellationToken) =>
throw new NotSupportedException();
107 public void SetHighPriority() =>
throw new NotSupportedException();
110 public Task<bool> SetPort(ushort newPort, CancellationToken cancellatonToken) =>
throw new NotSupportedException();
113 public Task<bool> SetRebootState(RebootState newRebootState, CancellationToken cancellationToken) =>
throw new NotSupportedException();
116 public void ReplaceDmbProvider(
IDmbProvider newProvider) =>
throw new NotSupportedException();
119 public void Suspend() =>
throw new NotSupportedException();
122 public void Resume() =>
throw new NotSupportedException();
125 public Task
InstanceRenamed(
string newInstanceName, CancellationToken cancellationToken) => Task.CompletedTask;
ApiValidationStatus
Status of DMAPI validation
Use server authentication
Parameters for a topic request.
Represents the result of trying to start a DD process
The owning instance was renamed.
RebootState
Represents the action to take when /world/Reboot() is called
Implements a fake "dead" ISessionController
bool disposed
If the DeadSessionController was Disposed
DeadSessionController(IDmbProvider dmbProvider)
Construct a DeadSessionController
Handles communication with a DreamDaemon IProcess
Provides absolute paths to the latest compiled .dmbs
readonly object disposeLock
object for disposed.