Inheritance: IWoopsaNotification
 protected void EnqueueNewMonitoredValue(IWoopsaValue newValue)
 {
     if (!newValue.IsSameValue(_oldValue))
     {
         _oldValue = newValue;
         if (newValue.TimeStamp == null)
         {
             newValue = WoopsaValue.CreateUnchecked(newValue.AsText, newValue.Type, DateTime.Now);
         }
         WoopsaServerNotification newNotification = new WoopsaServerNotification(newValue, SubscriptionId);
         lock (_lock)
         {
             if (MonitorInterval == WoopsaSubscriptionServiceConst.MonitorIntervalLastPublishedValueOnly)
             {
                 _notifications.Clear();
             }
             _notifications.Add(newNotification);
         }
     }
 }
 public NotificationEventArgs(WoopsaServerNotification notification)
 {
     Notification = notification;
 }
 protected void EnqueueNewMonitoredValue(IWoopsaValue newValue)
 {
     if (!newValue.IsSameValue(_oldValue))
     {
         _oldValue = newValue;
         if (newValue.TimeStamp == null)
             newValue = WoopsaValue.CreateUnchecked(newValue.AsText, newValue.Type, DateTime.Now);
         WoopsaServerNotification newNotification = new WoopsaServerNotification(newValue, SubscriptionId);
         lock (_lock)
         {
             if (MonitorInterval == WoopsaSubscriptionServiceConst.MonitorIntervalLastPublishedValueOnly)
                 _notifications.Clear();
             _notifications.Add(newNotification);
         }
     }
 }
Exemplo n.º 4
0
 public NotificationEventArgs(WoopsaServerNotification notification)
 {
     Notification = notification;
 }