public async Task <Server> UpdateServerBuildAsync(string Id, Action <ServerBuildOptions> options, CancellationToken token = default) { var serverOptions = new ServerBuildOptions(); options.Invoke(serverOptions); return(await UpdateServerBuildAsync(Id, serverOptions, token)); }
public async Task <Server> UpdateServerBuildAsync(string Id, ServerBuildOptions options, CancellationToken token = default) { var request = new RestRequest($"/api/application/servers/{Id}/build", Method.PATCH) .AddJsonBody(options); var response = await HandleRequest <Server>(request, token); return(response); }
public async Task <Server> UpdateServerBuildAsync(Server server, ServerBuildOptions options, CancellationToken token = default) { return(await UpdateServerBuildAsync(server.Identifier, options, token)); }