3using System.Threading.Tasks;
6using HotChocolate.Types;
30 ArgumentNullException.ThrowIfNull(administrationAuthority);
31 await administrationAuthority.Invoke(
32 authority => authority.TriggerServerRestart());
46 Version targetVersion,
48 CancellationToken cancellationToken)
50 ArgumentNullException.ThrowIfNull(targetVersion);
51 ArgumentNullException.ThrowIfNull(administrationAuthority);
53 authority => authority.TriggerServerVersionChange(targetVersion,
false, cancellationToken));
64 [GraphQLType<FileUploadTicketType>]
67 Version targetVersion,
69 CancellationToken cancellationToken)
71 ArgumentNullException.ThrowIfNull(targetVersion);
72 ArgumentNullException.ThrowIfNull(administrationAuthority);
74 authority => authority.TriggerServerVersionChange(targetVersion,
true, cancellationToken));
76 return response.FileTicket ??
throw new InvalidOperationException(
"Administration authority did not generate a FileUploadTicket!");
Response for when file transfers are necessary.
A response to a Request.ServerUpdateRequest.
Exception representing ErrorMessageResponses.
Root type for GraphQL mutations.
const string GraphQLDescription
Description to show on the Mutation type.
IAdministrationAuthority related Mutations.
async ValueTask< Query > ChangeServerNodeVersionViaTrackedRepository(Version targetVersion, [Service] IGraphQLAuthorityInvoker< IAdministrationAuthority > administrationAuthority, CancellationToken cancellationToken)
Restarts the mutated Interfaces.IServerNode without terminating running game instances and changes it...
async ValueTask< Query > RestartServerNode([Service] IGraphQLAuthorityInvoker< IAdministrationAuthority > administrationAuthority)
Restarts the mutated Interfaces.IServerNode without terminating running game instances.
async ValueTask< string > ChangeServerNodeVersionViaUpload(Version targetVersion, [Service] IGraphQLAuthorityInvoker< IAdministrationAuthority > administrationAuthority, CancellationToken cancellationToken)
Restarts the mutated Interfaces.IServerNode without terminating running game instances and changes it...
GraphQL query global::System.Type.
Invokes TAuthority s from GraphQL endpoints.