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