tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
InstanceWrapper.cs
Go to the documentation of this file.
1using System.Threading;
2using System.Threading.Tasks;
3
12
14{
19 {
24
26 public ulong Uid { get; }
27
30
33
36
39
42
45
50 {
51 Uid = Interlocked.Increment(ref instanceWrapperInstances);
52 }
53
55 public ValueTask InstanceRenamed(string newInstanceName, CancellationToken cancellationToken) => Instance.InstanceRenamed(newInstanceName, cancellationToken);
56
58 public ValueTask ScheduleAutoUpdate(uint newInterval, string? newCron) => Instance.ScheduleAutoUpdate(newInterval, newCron);
59
61 public ValueTask<CompileJob?> LatestCompileJob() => Instance.LatestCompileJob();
62
64 public ValueTask ScheduleServerStart(string? newCron) => Instance.ScheduleServerStart(newCron);
65
67 public ValueTask ScheduleServerStop(string? newCron) => Instance.ScheduleServerStop(newCron);
68 }
69}
IRepositoryManager RepositoryManager
The IRepositoryManager for the IInstanceCore.
Definition Instance.cs:39
ValueTask< CompileJob?> LatestCompileJob()
Gets the latest CompileJob.A ValueTask<TResult> resulting in the latest CompileJob or null if none ar...
async ValueTask ScheduleServerStart(string? newCron)
Change the server auto-start timing for the IInstanceCore.A ValueTask representing the running operat...
Definition Instance.cs:284
IChatManager Chat
The IChatManager for the IInstanceCore.
Definition Instance.cs:48
StaticFiles.IConfiguration Configuration
The IConfiguration for the IInstanceCore.
Definition Instance.cs:51
IDreamMaker DreamMaker
The IDreamMaker for the IInstanceCore.
Definition Instance.cs:54
IEngineManager EngineManager
The IEngineManager for the IInstanceCore.
Definition Instance.cs:42
async ValueTask ScheduleAutoUpdate(uint newInterval, string? newCron)
Change the auto-update timing for the IInstanceCore.A ValueTask representing the running operation.
Definition Instance.cs:243
IWatchdog Watchdog
The IWatchdog for the IInstanceCore.
Definition Instance.cs:45
async ValueTask ScheduleServerStop(string? newCron)
Change the server auto-stop timing for the IInstanceCore.A ValueTask representing the running operati...
Definition Instance.cs:322
ValueTask InstanceRenamed(string newName, CancellationToken cancellationToken)
Called when the owning Instance is renamed.A ValueTask representing the running operation.
Definition Instance.cs:195
ReferenceCounter<TInstance> for a given IInstance.
static ulong instanceWrapperInstances
Static counter for Uid.
InstanceWrapper()
Initializes a new instance of the InstanceWrapper class.
ValueTask ScheduleServerStop(string? newCron)
Change the server auto-stop timing for the IInstanceCore.A ValueTask representing the running operati...
ulong Uid
A unique ID for the IInstanceReference.
ValueTask ScheduleAutoUpdate(uint newInterval, string? newCron)
Change the auto-update timing for the IInstanceCore.A ValueTask representing the running operation.
IChatManager Chat
The IChatManager for the IInstanceCore.
IWatchdog Watchdog
The IWatchdog for the IInstanceCore.
ValueTask ScheduleServerStart(string? newCron)
Change the server auto-start timing for the IInstanceCore.A ValueTask representing the running operat...
ValueTask InstanceRenamed(string newInstanceName, CancellationToken cancellationToken)
Called when the owning Instance is renamed.A ValueTask representing the running operation.
ValueTask< CompileJob?> LatestCompileJob()
Gets the latest CompileJob.A ValueTask<TResult> resulting in the latest CompileJob or null if none ar...
Class used for counting references with ReferenceCountingContainer<TWrapped, TReference>.
For managing connected chat services.
Runs and monitors the twin server controllers.
Definition IWatchdog.cs:16