tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
TemporaryDmbProvider.cs
Go to the documentation of this file.
1using System;
2using System.Threading.Tasks;
3
5
7{
12 {
14 public override string Directory { get; }
15
17 public override Models.CompileJob CompileJob { get; }
18
20 public override EngineVersion EngineVersion { get; }
21
28 public TemporaryDmbProvider(string directory, Models.CompileJob compileJob, EngineVersion engineVersion)
29 {
30 Directory = directory ?? throw new ArgumentNullException(nameof(directory));
31 CompileJob = compileJob ?? throw new ArgumentNullException(nameof(compileJob));
32 EngineVersion = engineVersion ?? throw new ArgumentNullException(nameof(engineVersion));
33 }
34
36 public override ValueTask DisposeAsync() => ValueTask.CompletedTask;
37
39 public override void KeepAlive() => throw new NotSupportedException();
40 }
41}
Information about an engine installation.
TemporaryDmbProvider(string directory, Models.CompileJob compileJob, EngineVersion engineVersion)
Initializes a new instance of the TemporaryDmbProvider class.
override void KeepAlive()
Disposing the IDmbProvider won't cause a cleanup of the working directory.
override Models.CompileJob CompileJob
The CompileJob of the .dmb.