예제 #1
0
        public async Task <string> MonitorPing(string service)
        {
            switch (service.ToLower())
            {
            case "ping":
                return(_monitor.Ping());

            case "metrics":
                return(_monitor.Metrics());

            case "health":
                return((await _monitor.Health()).ToString());

            case "version":
                return(_monitor.Version());
            }

            return(null);
        }