Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 public virtual void SendPushNotification(PushNotification obj)
 {
     Action<PushNotification> handler = this.SendPushNotificationEvent;
     if (handler != null) handler(obj);
 }