3using System.Threading.Tasks;
33 this.instance =
instance ??
throw new ArgumentNullException(nameof(
instance));
virtual ? long Id
The ID of the entity.
Metadata about a server instance.
A request to update DreamDaemonSettings.
Represents an instance of BYOND's DreamDaemon game server. Create action starts the server....
Represents a long running job on the server. Model is read-only, updates attempt to cancel the job.
Routes to a server actions.
const string DreamDaemon
The DreamDaemon controller.
const string Diagnostics
For accessing DD diagnostics.
readonly IApiClient apiClient
The IApiClient for the DreamDaemonClient.
DreamDaemonClient(IApiClient apiClient, Instance instance)
Initializes a new instance of the DreamDaemonClient class.
ValueTask< JobResponse > Start(CancellationToken cancellationToken)
Start DreamDaemonResponse.A Task<TResult> resulting in the JobResponse of the running operation.
ValueTask Shutdown(CancellationToken cancellationToken)
Shutdown DreamDaemonResponse.A ValueTask<TResult> resulting in the DreamDaemonResponse information.
ValueTask< JobResponse > Restart(CancellationToken cancellationToken)
Restart DreamDaemonResponse.A ValueTask<TResult> resulting in the JobResponse of the running operatio...
ValueTask< DreamDaemonResponse > Update(DreamDaemonRequest dreamDaemon, CancellationToken cancellationToken)
Update DreamDaemonResponse. This may trigger a Api.Models.Internal.DreamDaemonApiBase....
ValueTask< DreamDaemonResponse > Read(CancellationToken cancellationToken)
Get the DreamDaemonResponse represented by the IDreamDaemonClient.A ValueTask<TResult> resulting in t...
ValueTask< JobResponse > CreateDump(CancellationToken cancellationToken)
Start a job to create a process dump of the active DreamDaemon executable.A ValueTask<TResult> result...
readonly Instance instance
The Instance for the DreamDaemonClient.
For managing DreamDaemonResponse.
Web interface for the API.
ValueTask Patch(string route, CancellationToken cancellationToken)
Run an HTTP PATCH request.
ValueTask Delete(string route, CancellationToken cancellationToken)
Run an HTTP DELETE request.