コード例 #1
0
        public void TestSNMPController()
        {
            bool successfull = false;

            try
            {
                string         connectionString = Properties.Settings.Default.TestDatabase;
                SNMPController controller       = new SNMPController(connectionString);
                controller.GetSNMPDataFromAgents();
                successfull = true;
            }
            catch (Exception exc)
            {
                successfull = false;
            }

            Assert.IsTrue(successfull);
        }
コード例 #2
0
 private static void OnShortTimedEvent(object source, ElapsedEventArgs e)
 {
     controller.GetSNMPDataFromAgents();
 }