2using System.Collections.Generic;
4using System.Threading.Tasks;
26 IEnumerable<IRequestLogger>? requestLoggers =
null,
27 TimeSpan? timeout =
null,
28 CancellationToken cancellationToken =
default);
45 IEnumerable<IRequestLogger>? requestLoggers =
null,
46 TimeSpan? timeout =
null,
47 bool attemptLoginRefresh =
true,
48 CancellationToken cancellationToken =
default);
64 IEnumerable<IRequestLogger>? requestLoggers =
null,
65 TimeSpan? timeout =
null,
66 CancellationToken cancellationToken =
default);
Represents a JWT returned by the API.
Factory for creating IRestServerClients.
ValueTask< IRestServerClient > CreateFromOAuth(Uri host, string oAuthCode, OAuthProvider oAuthProvider, IEnumerable< IRequestLogger >? requestLoggers=null, TimeSpan? timeout=null, CancellationToken cancellationToken=default)
Create a IRestServerClient using an OAuth login.
ValueTask< IRestServerClient > CreateFromLogin(Uri host, string username, string password, IEnumerable< IRequestLogger >? requestLoggers=null, TimeSpan? timeout=null, bool attemptLoginRefresh=true, CancellationToken cancellationToken=default)
Create a IRestServerClient using a password login.
IRestServerClient CreateFromToken(Uri host, TokenResponse token)
Create a IRestServerClient.
ValueTask< ServerInformationResponse > GetServerInformation(Uri host, IEnumerable< IRequestLogger >? requestLoggers=null, TimeSpan? timeout=null, CancellationToken cancellationToken=default)
Gets the ServerInformationResponse for a given host .
Main client for communicating with a server.
OAuthProvider
List of OAuth providers supported by TGS.