Пример #1
0
 public void RaiseNotifications(DataSubscriptionChangeNotification obj)
 {
     Database.TransportState.Send(obj);
 }
Пример #2
0
		public void Send(DataSubscriptionChangeNotification dataSubscriptionChangeNotification)
		{
			var onOnDataSubscriptionChangeNotification = OnDataSubscriptionNotification;
			if (onOnDataSubscriptionChangeNotification != null)
				onOnDataSubscriptionChangeNotification(dataSubscriptionChangeNotification);
		}
Пример #3
0
 public void Send(DataSubscriptionChangeNotification dataSubscriptionChangeNotification)
 {
     OnDataSubscriptionChangeNotification(this, dataSubscriptionChangeNotification);
     foreach (var connectionState in connections)
     {
         connectionState.Value.Send(dataSubscriptionChangeNotification);
     }
 }
Пример #4
0
        public void Send(DataSubscriptionChangeNotification dataSubscriptionChangeNotification)
        {
            if (watchAllDataSubscriptions > 0)
            {
                Enqueue(new { Value = dataSubscriptionChangeNotification, Type = "DataSubscriptionChangeNotification" });
                return;
            }

            if (matchingDataSubscriptions.Contains(dataSubscriptionChangeNotification.Id) == false)
                return;

            Enqueue(new { Value = dataSubscriptionChangeNotification, Type = "DataSubscriptionChangeNotification" });
        }