Пример #1
0
        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));
        }
Пример #2
0
        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);
        }
Пример #3
0
 public async Task <Server> UpdateServerStartupAsync(Server server, ServerStartupOptions options, CancellationToken token = default)
 {
     return(await UpdateServerStartupAsync(server.Identifier, options, token));
 }