예제 #1
0
파일: Agent.cs 프로젝트: Cylindric/Monitor
        public void Start()
        {
            // Ping the server
            try
            {
                Console.WriteLine("Attempting to contact the server at {0}", mServerURI);
                bool result = mServer.Ack();
                Console.WriteLine("Server responsed");
            }
            catch (EndpointNotFoundException)
            {
                Console.WriteLine("The server is not listening. Will try again later.");
            }

            mScheduler.Start();

            // Poll all plugins for data
            Poll();
        }