示例#1
0
 public void Send(DataSubscriptionChangeNotification dataSubscriptionChangeNotification)
 {
     OnDataSubscriptionChangeNotification(this, dataSubscriptionChangeNotification);
     foreach (var connectionState in connections)
     {
         connectionState.Value.DocumentStore.Send(dataSubscriptionChangeNotification);
     }
 }
示例#2
0
        public void Send(DataSubscriptionChangeNotification dataSubscriptionChangeNotification)
        {
            var onOnDataSubscriptionChangeNotification = OnDataSubscriptionNotification;

            if (onOnDataSubscriptionChangeNotification != null)
            {
                onOnDataSubscriptionChangeNotification(dataSubscriptionChangeNotification);
            }
        }
示例#3
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" });
        }
示例#4
0
 public void RaiseNotifications(DataSubscriptionChangeNotification obj)
 {
     Database.TransportState.Send(obj);
 }
 public void Send(DataSubscriptionChangeNotification dataSubscriptionChangeNotification)
 {
     OnDataSubscriptionNotification?.Invoke(dataSubscriptionChangeNotification);
 }