示例#1
0
        HealthBlock GetDatabaseHealth()
        {
            HealthBlock block = new HealthBlock()
            {
                Name = "Database"
            };
            var isHealthy = _stateManager.IsHealthy();

            block.AddMatrix("IsHealthy", isHealthy);
            return(block);
        }
示例#2
0
        HealthBlock GetCacheHealth()
        {
            var         isHealthy = _cacheStorage.IsHealthy();
            HealthBlock block     = new HealthBlock()
            {
                Name = "Cache"
            };

            block.AddMatrix("IsHealthy", isHealthy);
            return(block);
        }