示例#1
0
        public void SendPushNotification(PushNotification pushNotification)
        {
            IEnumerable<PushConnection> connectedPushConnections = this.PushConnections.Where(connection => connection.IsConnected);
            foreach (PushConnection connection in connectedPushConnections)
            {
                connection.SendPushNotification(pushNotification);
            }

            this.PushConnections.Clear();
        }
示例#2
0
 public virtual void SendPushNotification(PushNotification obj)
 {
     Action<PushNotification> handler = this.SendPushNotificationEvent;
     if (handler != null) handler(obj);
 }