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