2using System.Collections.Generic;
4using System.Threading.Tasks;
Common base of entities with IDs.
virtual ? long Id
The ID of the entity.
Metadata about a server instance.
Represents a long running job on the server. Model is read-only, updates attempt to cancel the job.
Routes to a server actions.
static string SetID(string route, long id)
Apply an id postfix to a route .
static string ListRoute(string route)
Get the /List postfix for a route .
const string Jobs
The jobs controller.
ValueTask Delete(string route, CancellationToken cancellationToken)
Run an HTTP DELETE request.A ValueTask representing the running operation.
ValueTask< List< JobResponse > > ListActive(PaginationSettings? paginationSettings, CancellationToken cancellationToken)
List the active JobResponses in the Instance.A ValueTask<TResult> resulting in a List<T> of the activ...
ValueTask Cancel(JobResponse job, CancellationToken cancellationToken)
Cancels a job .A ValueTask representing the running operation.
JobsClient(IApiClient apiClient, Instance instance)
Initializes a new instance of the JobsClient class.
readonly Instance instance
The Instance for the JobsClient.
ValueTask< List< JobResponse > > List(PaginationSettings? paginationSettings, CancellationToken cancellationToken)
List the JobResponses in the Instance.A ValueTask<TResult> resulting in a List<T> of the JobResponse ...
ValueTask< JobResponse > GetId(EntityId job, CancellationToken cancellationToken)
Get a job .A ValueTask<TResult> resulting in the JobResponse.
Client that deals with getting paginated results.
Web interface for the API.