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); }
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)); }