Opc.Ua.Client.MonitoredItemDataCache.OnNotification C# (CSharp) Method

OnNotification() public method

Saves a notification in the cache.
public OnNotification ( MonitoredItemNotification notification ) : void
notification MonitoredItemNotification
return void
        public void OnNotification(MonitoredItemNotification notification)
        {
            m_values.Enqueue(notification.Value);
            m_lastValue = notification.Value;
            
           // Utils.Trace(
           //    "NotificationReceived: ClientHandle={0}, Value={1}", 
           //    notification.ClientHandle,
           //    m_lastValue.Value);

            while (m_values.Count > m_queueSize)
            {
                m_values.Dequeue();
            }
        }