public ActionResult Get(string Service)
 {
     using (SSTMonitorServiceClient serviceClient = new SSTMonitorServiceClient())
     {
         return(Content(serviceClient.GetStatus(Service).ToString()));
     }
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            SSTMonitorServiceClient client = new SSTMonitorServiceClient();

            while (true)
            {
                Console.Clear();
                Console.WriteLine("Status: {0}", client.GetStatus());
                Console.WriteLine("{0}: Status updated!", DateTime.Now.ToLongTimeString());
                Console.WriteLine("Press Enter to get the new status.");
                Console.ReadLine();
            }
        }