public void OnNotificationEvent(UnconfirmedEventNotification notification) { NotificationEventHandler handler = NotificationEvent; if (handler != null) { handler(notification); } }
public void ReceivedEventNotification(BacNetRawMessage msg) { UnconfirmedEventNotification apdu; try { apdu = new UnconfirmedEventNotification(msg.Apdu); } catch { return; } BacNetDevice.Instance.OnNotificationEvent(apdu); }