コード例 #1
0
 public void Send(KeyChangeNotification localKeyNotification)
 {
     OnTimeSeriesChangeNotification(this, localKeyNotification);
     foreach (var connectionState in connections)
     {
         connectionState.Value.TimeSeries.Send(localKeyNotification);
     }
 }
コード例 #2
0
        public void Send(KeyChangeNotification keyNotification)
        {
            var onTimeSeriesChangeNotification = OnChangeNotification;

            if (onTimeSeriesChangeNotification != null)
            {
                onTimeSeriesChangeNotification(keyNotification);
            }
        }
コード例 #3
0
        public void Send(KeyChangeNotification 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(KeyChangeNotification notification)
 {
     transportState.Send(notification);
 }