예제 #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);
        }