Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public async Task <Server> UpdateServerBuildAsync(Server server, ServerBuildOptions options, CancellationToken token = default)
 {
     return(await UpdateServerBuildAsync(server.Identifier, options, token));
 }