3using System.Threading.Tasks;
5using Microsoft.AspNetCore.SignalR.Client;
6using Microsoft.Extensions.Logging;
49 THubImplementation hubImplementation,
51 Action<ILoggingBuilder>? loggingConfigureAction,
52 CancellationToken cancellationToken)
53 where THubImplementation :
class;
74 ValueTask<TResult>
Create<TResult>(
string route, CancellationToken cancellationToken);
83 ValueTask<TResult>
Read<TResult>(
string route, CancellationToken cancellationToken);
104 ValueTask<TResult>
Update<TResult>(
string route, CancellationToken cancellationToken);
114 ValueTask
Update<TBody>(
string route, TBody body, CancellationToken cancellationToken)
123 ValueTask
Patch(
string route, CancellationToken cancellationToken);
131 ValueTask
Delete(
string route, CancellationToken cancellationToken);
147 CancellationToken cancellationToken)
158 ValueTask<TResult>
Create<TResult>(
string route,
long instanceId, CancellationToken cancellationToken);
168 ValueTask<TResult>
Patch<TResult>(
string route,
long instanceId, CancellationToken cancellationToken);
178 ValueTask<TResult>
Read<TResult>(
string route,
long instanceId, CancellationToken cancellationToken);
194 CancellationToken cancellationToken)
204 ValueTask
Delete(
string route,
long instanceId, CancellationToken cancellationToken);
215 ValueTask
Delete<TBody>(
string route, TBody body,
long instanceId, CancellationToken cancellationToken)
226 ValueTask<TResult>
Delete<TResult>(
string route,
long instanceId, CancellationToken cancellationToken);
238 ValueTask<TResult>
Delete<TBody, TResult>(
string route, TBody body,
long instanceId, CancellationToken cancellationToken)
Web interface for the API.
ValueTask< TResult > Create< TBody, TResult >(string route, TBody body, CancellationToken cancellationToken)
Run an HTTP PUT request.
Uri Url
The Uri pointing the tgstation-server.
ValueTask< IAsyncDisposable > CreateHubConnection< THubImplementation >(THubImplementation hubImplementation, IRetryPolicy? retryPolicy, Action< ILoggingBuilder >? loggingConfigureAction, CancellationToken cancellationToken)
Subscribe to all job updates available to the IRestServerClient.
ValueTask Update< TBody >(string route, TBody body, CancellationToken cancellationToken)
Run an HTTP POST request.
ValueTask< TResult > Update< TResult >(string route, CancellationToken cancellationToken)
Run an HTTP POST request.
ValueTask Patch(string route, CancellationToken cancellationToken)
Run an HTTP PATCH request.
ValueTask< TResult > Create< TResult >(string route, CancellationToken cancellationToken)
Run an HTTP PUT request.
void AddRequestLogger(IRequestLogger requestLogger)
Adds a requestLogger to the request pipeline.
ValueTask Delete(string route, CancellationToken cancellationToken)
Run an HTTP DELETE request.
ValueTask< TResult > Patch< TResult >(string route, long instanceId, CancellationToken cancellationToken)
Run an HTTP PATCH request.
ValueTask< TResult > Delete< TResult >(string route, long instanceId, CancellationToken cancellationToken)
Run an HTTP DELETE request.
ValueTask< TResult > Delete< TBody, TResult >(string route, TBody body, long instanceId, CancellationToken cancellationToken)
Run an HTTP DELETE request.
ValueTask< TResult > Read< TResult >(string route, CancellationToken cancellationToken)
Run an HTTP GET request.
TimeSpan Timeout
The request timeout.
ValueTask Delete< TBody >(string route, TBody body, long instanceId, CancellationToken cancellationToken)
Run an HTTP DELETE request.
ValueTask Delete(string route, long instanceId, CancellationToken cancellationToken)
Run an HTTP DELETE request.
ValueTask< TResult > Update< TBody, TResult >(string route, TBody body, CancellationToken cancellationToken)
Run an HTTP POST request.
ApiHeaders Headers
The ApiHeaders the IApiClient uses.
For logging HTTP requests and responses.
For transferring data Streams.