tgstation-server 6.12.3
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IGraphQLServerClientFactory.cs
Go to the documentation of this file.
1using System;
2using System.Threading;
3using System.Threading.Tasks;
4
6{
11 {
18
29 ValueTask<IAuthenticatedGraphQLServerClient> CreateFromLogin(
30 Uri host,
31 string username,
32 string password,
33 bool attemptLoginRefresh = true,
34 CancellationToken cancellationToken = default);
35
45 ValueTask<IAuthenticatedGraphQLServerClient> CreateFromOAuth(
46 Uri host,
47 string oAuthCode,
48 OAuthProvider oAuthProvider,
49 CancellationToken cancellationToken = default);
50
58 Uri host,
59 string token);
60 }
61}
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.