|
tgstation-server 6.19.0
The /tg/station 13 server suite
|


Public Member Functions | |||||||||
| RestServerClient (IApiClient apiClient) | |||||||||
| Initializes a new instance of the RestServerClient class. | |||||||||
| ValueTask | DisposeAsync () | ||||||||
| ValueTask< ServerInformationResponse > | ServerInformation (CancellationToken cancellationToken) | ||||||||
The ServerInformationResponse of the IRestServerClient.
| |||||||||
| void | AddRequestLogger (IRequestLogger requestLogger) | ||||||||
Adds a requestLogger to the request pipeline.
| |||||||||
| ValueTask< IAsyncDisposable > | SubscribeToJobUpdates (IJobsHub jobsReceiver, IRetryPolicy? retryPolicy, Action< ILoggingBuilder >? loggingConfigureAction, CancellationToken cancellationToken) | ||||||||
Subscribe to all job updates available to the IRestServerClient.
| |||||||||
Properties | |
| Uri | Url [get] |
| The connected server's root Uri. | |
| TokenResponse | Token [get, set] |
| The Token used to access the server. | |
| TimeSpan | Timeout [get, set] |
| The connection timeout. | |
| IInstanceManagerClient | Instances [get] |
| Access the IInstanceManagerClient. | |
| IAdministrationClient | Administration [get] |
| Access the IAdministrationClient. | |
| IUsersClient | Users [get] |
| Access the IUsersClient. | |
| IUserGroupsClient | Groups [get] |
| Access the IUserGroupsClient. | |
| ITransferClient | Transfer [get] |
| Access the ITransferClient.Most client methods handle transfers in their invocations. There is rarely any reason to use the ITransferClient directly. | |
Properties inherited from Tgstation.Server.Client.IRestServerClient | |
Private Attributes | |
| readonly IApiClient | apiClient |
| The IApiClient for the RestServerClient. | |
Definition at line 15 of file RestServerClient.cs.
| Tgstation.Server.Client.RestServerClient.RestServerClient | ( | IApiClient | apiClient | ) |
Initializes a new instance of the RestServerClient class.
| apiClient | The value of apiClient. |
Definition at line 58 of file RestServerClient.cs.
References Tgstation.Server.Client.RestServerClient.Administration, Tgstation.Server.Client.RestServerClient.apiClient, Tgstation.Server.Client.RestServerClient.Groups, Tgstation.Server.Client.RestServerClient.Instances, and Tgstation.Server.Client.RestServerClient.Users.
| void Tgstation.Server.Client.RestServerClient.AddRequestLogger | ( | IRequestLogger | requestLogger | ) |
Adds a requestLogger to the request pipeline.
| requestLogger | The IRequestLogger to add. |
Implements Tgstation.Server.Client.IRestServerClient.
| ValueTask Tgstation.Server.Client.RestServerClient.DisposeAsync | ( | ) |
| ValueTask< ServerInformationResponse > Tgstation.Server.Client.RestServerClient.ServerInformation | ( | CancellationToken | cancellationToken | ) |
The ServerInformationResponse of the IRestServerClient.
| cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IRestServerClient.
| ValueTask< IAsyncDisposable > Tgstation.Server.Client.RestServerClient.SubscribeToJobUpdates | ( | IJobsHub | jobsReceiver, |
| IRetryPolicy? | retryPolicy, | ||
| Action< ILoggingBuilder >? | loggingConfigureAction, | ||
| CancellationToken | cancellationToken | ||
| ) |
Subscribe to all job updates available to the IRestServerClient.
| jobsReceiver | The IJobsHub to use to subscribe to updates. |
| retryPolicy | The optional IRetryPolicy to use for the backing connection. The default retry policy waits for 1, 2, 4, 8, and 16 seconds, then 30s repeatedly. |
| loggingConfigureAction | The optional Action<T1> used to configure a ILoggingBuilder. |
| cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IRestServerClient.
|
private |
The IApiClient for the RestServerClient.
Definition at line 52 of file RestServerClient.cs.
Referenced by Tgstation.Server.Client.RestServerClient.RestServerClient().
|
get |
Access the IAdministrationClient.
Implements Tgstation.Server.Client.IRestServerClient.
Definition at line 38 of file RestServerClient.cs.
Referenced by Tgstation.Server.Client.RestServerClient.RestServerClient().
|
get |
Access the IUserGroupsClient.
Implements Tgstation.Server.Client.IRestServerClient.
Definition at line 44 of file RestServerClient.cs.
Referenced by Tgstation.Server.Client.RestServerClient.RestServerClient().
|
get |
Access the IInstanceManagerClient.
Implements Tgstation.Server.Client.IRestServerClient.
Definition at line 35 of file RestServerClient.cs.
Referenced by Tgstation.Server.Client.RestServerClient.RestServerClient().
|
getset |
The connection timeout.
Implements Tgstation.Server.Client.IRestServerClient.
Definition at line 28 of file RestServerClient.cs.
|
getset |
The Token used to access the server.
Implements Tgstation.Server.Client.IRestServerClient.
Definition at line 21 of file RestServerClient.cs.
|
get |
Access the ITransferClient.Most client methods handle transfers in their invocations. There is rarely any reason to use the ITransferClient directly.
Implements Tgstation.Server.Client.IRestServerClient.
Definition at line 47 of file RestServerClient.cs.
|
get |
The connected server's root Uri.
Implements Tgstation.Server.Client.IRestServerClient.
Definition at line 18 of file RestServerClient.cs.
|
get |
Access the IUsersClient.
Implements Tgstation.Server.Client.IRestServerClient.
Definition at line 41 of file RestServerClient.cs.
Referenced by Tgstation.Server.Client.RestServerClient.RestServerClient().