public void GetStatusTest() { using (var manager = new IpModuleManager(module)) { manager.Login(); manager.GetAlarmInformation(); manager.GetStatus(); manager.Logout(); } }
public void StatusEventTest() { using (var manager = new IpModuleManager(module)) { manager.Login(); manager.GetAlarmInformation(); manager.AlarmStatusUpdate += (sender, args) => Console.Write("raised"); manager.MonitorEvents(); manager.GetStatus(); Thread.Sleep(1500); manager.GetStatus(); manager.ShouldRaise("AlarmStatusUpdate"); manager.Logout(); } }