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
Comment #1
Posted on Mar 15, 2011 by Happy LionFair enough, will look at adding this.
Status: Accepted
Labels:
Type-Enhancement
Priority-Medium