Пример #1
0
 public void Send(TimeSeriesChangeNotification localChangeNotification)
 {
     OnTimeSeriesChangeNotification(this, localChangeNotification);
     foreach (var connectionState in connections)
     {
         connectionState.Value.TimeSeries.Send(localChangeNotification);
     }
 }
Пример #2
0
        public void Send(TimeSeriesChangeNotification changeNotification)
        {
            var onTimeSeriesChangeNotification = OnChangeNotification;

            if (onTimeSeriesChangeNotification != null)
            {
                onTimeSeriesChangeNotification(changeNotification);
            }
        }
Пример #3
0
        public void Send(TimeSeriesChangeNotification notification)
        {
            var timeSeriesPrefix = string.Concat(notification.Type, "/", notification.Key);

            if (watchAllTimeSeries > 0 || matchingKeyChanges.Contains(timeSeriesPrefix))
            {
                var value = new { Value = notification, Type = keyChangeNotificationType };
                enqueue(value);
            }

            /*if (matchingRanges.Any(prefix => prefix.InRange(notification.At)))
             * {
             *  var value = new { Value = notification, Type = rangesNotificationType };
             *  enqueue(value);
             * }*/
        }
Пример #4
0
 public void RaiseNotification(TimeSeriesChangeNotification notification)
 {
     transportState.Send(notification);
 }