public async Task <Server> UpdateServerStartupAsync(string Id, Action <ServerStartupOptions> options, CancellationToken token = default) { var serverOptions = new ServerStartupOptions(); options.Invoke(serverOptions); return(await UpdateServerStartupAsync(Id, serverOptions, token)); }
public async Task <Server> UpdateServerStartupAsync(string Id, ServerStartupOptions 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> UpdateServerStartupAsync(Server server, ServerStartupOptions options, CancellationToken token = default) { return(await UpdateServerStartupAsync(server.Identifier, options, token)); }