Ejemplo n.º 1
0
        public async Task <Server> UpdateServerDetailsAsync(string Id, Action <ServerDetailOptions> options, CancellationToken token = default)
        {
            var serverOptions = new ServerDetailOptions();

            options.Invoke(serverOptions);
            return(await UpdateServerDetailsAsync(Id, serverOptions, token));
        }
Ejemplo n.º 2
0
        public async Task <Server> UpdateServerDetailsAsync(string Id, ServerDetailOptions options, CancellationToken token = default)
        {
            var request = new RestRequest($"/api/application/servers/{Id}/ details", Method.PATCH)
                          .AddJsonBody(options);

            var response = await HandleRequest <Server>(request, token);

            return(response);
        }
Ejemplo n.º 3
0
 public async Task <Server> UpdateServerDetailsAsync(Server server, ServerDetailOptions options, CancellationToken token = default)
 {
     return(await UpdateServerDetailsAsync(server.Identifier, options, token));
 }