Example #1
0
        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);
        }
Example #2
0
        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);
        }