tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IDmbFactory.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.CompilerServices;
3using System.Threading;
4using System.Threading.Tasks;
5
7
9{
14 {
19 Task OnNewerDmb { get; }
20
24 bool DmbAvailable { get; }
25
33 IDmbProvider LockNextDmb(string reason, [CallerFilePath] string? callerFile = null, [CallerLineNumber] int callerLine = default);
34
44 ValueTask<IDmbProvider?> FromCompileJob(CompileJob compileJob, string reason, CancellationToken cancellationToken, [CallerFilePath] string? callerFile = null, [CallerLineNumber] int callerLine = default);
45
51 ValueTask CleanUnusedCompileJobs(CancellationToken cancellationToken);
52 }
53}
ValueTask< IDmbProvider?> FromCompileJob(CompileJob compileJob, string reason, CancellationToken cancellationToken, [CallerFilePath] string? callerFile=null, [CallerLineNumber] int callerLine=default)
Gets a IDmbProvider for a given CompileJob.
ValueTask CleanUnusedCompileJobs(CancellationToken cancellationToken)
Deletes all compile jobs that are inactive in the Game folder.
IDmbProvider LockNextDmb(string reason, [CallerFilePath] string? callerFile=null, [CallerLineNumber] int callerLine=default)
Gets the next IDmbProvider. DmbAvailable is a precondition.
Task OnNewerDmb
Get a Task that completes when the result of a call to LockNextDmb will be different than the previou...
Provides absolute paths to the latest compiled .dmbs.
Represents a component meant to be started and stopped by its parent component.