snnagar / apns-sharp

Automatically exported from code.google.com/p/apns-sharp
0 stars 0 forks source link

Feature Request: Queued messages #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
After building in the lib in my windows service, where I feed multiple
apps with notifications, a nice feature would be exposing the count
of queued messages overall connections in class NotificationService.cs

/// <summary>
/// Returns the number of queued messages overall connections
/// </summary>
/// <returns>Number of queued Messages</returns>
public int GetQueuedNotificationCount()
{
    int notificationCount = 0;
    foreach (NotificationConnection connection in   
            notificationConnections)
        notificationCount += connection.QueuedNotificationsCount;

    return notificationCount;
}

Thanks,

Christian

Original issue reported on code.google.com by christia...@netpioneer.de on 27 Feb 2011 at 10:17

GoogleCodeExporter commented 9 years ago
Fair enough, will look at adding this.

Original comment by jond...@gmail.com on 15 Mar 2011 at 5:34