3using System.Threading.Tasks;
33 bool attemptLoginRefresh =
true,
34 CancellationToken cancellationToken =
default);
48 OAuthProvider oAuthProvider,
49 CancellationToken cancellationToken =
default);
A IGraphQLServerClient known to be authenticated.
Factory for creating IGraphQLServerClients.
IGraphQLServerClient CreateUnauthenticated(Uri host)
Create an unauthenticated IGraphQLServerClient.
ValueTask< IAuthenticatedGraphQLServerClient > CreateFromOAuth(Uri host, string oAuthCode, OAuthProvider oAuthProvider, CancellationToken cancellationToken=default)
Create a IGraphQLServerClient using an OAuth login.
IAuthenticatedGraphQLServerClient CreateFromToken(Uri host, string token)
Create a IRestServerClient.
ValueTask< IAuthenticatedGraphQLServerClient > CreateFromLogin(Uri host, string username, string password, bool attemptLoginRefresh=true, CancellationToken cancellationToken=default)
Create a IGraphQLServerClient using a password login.
Wrapper for using a TGS IGraphQLClient.