Beispiel #1
0
        private async Task saveMaxWorkersPerServer(HttpContext context)
        {
            var parsed = await parseRequestBody(context.Request);

            _configurationApi.WriteMaxWorkersPerServer(new WriteMaxWorkersPerServer
            {
                ConfigurationId = parsed.SelectToken("configurationId").Value <int>(),
                MaxWorkers      = tryParseNullable(parsed.SelectToken("maxWorkers").Value <string>())
            });
            context.Response.WriteAsync("Max workers per server was saved successfully!").Wait();
        }