public SystemResponsePayload GetHealthCheckResponseV3() { SystemResponsePayload payload = new SystemResponsePayload { isHealthy = PremiseServer.HomeObject.GetValueAsync <bool>("Health").GetAwaiter().GetResult(), description = PremiseServer.HomeObject.GetValueAsync <string>("HealthDescription").GetAwaiter().GetResult() }; return(payload); }
private SystemResponsePayload GetHealthCheckResponseV2() { SystemResponsePayload payload = new SystemResponsePayload(); var returnClause = new[] { "Health", "HealthDescription" }; dynamic whereClause = new ExpandoObject(); payload.isHealthy = PremiseServer.HomeObject.GetValue <bool>("Health").GetAwaiter().GetResult(); payload.description = PremiseServer.HomeObject.GetValue <string>("HealthDescription").GetAwaiter().GetResult(); return(payload); }