tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Components
Deployment
DmbProviderBase.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Threading.Tasks;
3
4
using
Tgstation.Server.Api.Models
;
5
using
Tgstation.Server.Api.Models.Internal
;
6
using
Tgstation.Server.Host.Models
;
7
8
namespace
Tgstation.Server.Host.Components.Deployment
9
{
11
abstract
class
DmbProviderBase
:
IDmbProvider
12
{
14
public
string
DmbName
=> String.Concat(
15
CompileJob
.
DmeName
,
16
EngineVersion
.
Engine
switch
17
{
18
EngineType.Byond =>
".dmb"
,
19
EngineType.OpenDream =>
".json"
,
20
_ => throw new InvalidOperationException($
"Invalid EngineType: {EngineVersion.Engine}"
),
21
});
22
24
public
abstract
string
Directory
{
get
; }
25
27
public
abstract
Models.CompileJob
CompileJob
{
get
; }
28
30
public
abstract
EngineVersion
EngineVersion
{
get
; }
31
33
public
abstract
ValueTask
DisposeAsync
();
34
36
public
abstract
void
KeepAlive
();
37
}
38
}
Tgstation.Server.Api.Models.EngineVersion
Information about an engine installation.
Definition
EngineVersion.cs:14
Tgstation.Server.Api.Models.EngineVersion.Engine
EngineType? Engine
The EngineType.
Definition
EngineVersion.cs:24
Tgstation.Server.Api.Models.Internal.CompileJob
Represents a deployment run.
Definition
CompileJob.cs:11
Tgstation.Server.Api.Models.Internal.CompileJob.DmeName
string? DmeName
The .dme file used for compilation.
Definition
CompileJob.cs:16
Tgstation.Server.Host.Components.Deployment.DmbProviderBase
Definition
DmbProviderBase.cs:12
Tgstation.Server.Host.Components.Deployment.DmbProviderBase.KeepAlive
void KeepAlive()
Disposing the IDmbProvider won't cause a cleanup of the working directory.
Tgstation.Server.Host.Components.Deployment.DmbProviderBase.DmbName
string DmbName
The file name of the .dmb.
Definition
DmbProviderBase.cs:14
Tgstation.Server.Host.Components.Deployment.DmbProviderBase.Directory
string Directory
The primary game directory.
Definition
DmbProviderBase.cs:24
Tgstation.Server.Host.Components.Deployment.DmbProviderBase.DisposeAsync
ValueTask DisposeAsync()
Tgstation.Server.Host.Models.CompileJob
Definition
CompileJob.cs:11
Tgstation.Server.Host.Components.Deployment.IDmbProvider
Provides absolute paths to the latest compiled .dmbs.
Definition
IDmbProvider.cs:11
Tgstation.Server.Api.Models.Internal
Definition
ChatBotApiBase.cs:6
Tgstation.Server.Api.Models
Definition
ChatChannel.cs:6
Tgstation.Server.Host.Components.Deployment
Definition
DeploymentLockManager.cs:13
Tgstation.Server.Host.Models
Definition
ChatBot.cs:9
Generated by
1.9.8