示例#1
0
        public async Task OnPost()
        {
            this.logger.LogInformation("Executing Health Check page");
            var gadget = new HealthCheckGadget(this.logger, this.httpClientFactory, Url, this.appSettings);

            this.GadgetResponse = await gadget.ExecuteAsync(this.GadgetRequest);
        }
示例#2
0
        public async Task <GadgetResponse <HealthCheckGadget.Result> > HealthCheck([FromBody] HealthCheckGadget.Request request)
        {
            this.logger.LogInformation("Executing Health Check API");
            var gadget = new HealthCheckGadget(this.logger, this.httpClientFactory, Url, this.appSettings);

            return(await gadget.ExecuteAsync(request));
        }