Beispiel #1
0
 public void GetWaitingQueueMessageCount()
 {
     using (var manager = new QueueMessageManagerSql())
     {
         int count = manager.GetWaitingQueueMessageCount(GlobalService.Controller.QueueName);
         // broadcast to all clients
         Clients.All.getWaitingQueueMessageCountCallback(count);
     }
 }
Beispiel #2
0
        public void GetWaitingMessagesCountTest()
        {
            var manager = new QueueMessageManagerSql();

            int count = manager.GetWaitingQueueMessageCount();

            Assert.IsNotNull(count > -1);

            Console.WriteLine(count + " queued items waiting.");
        }
Beispiel #3
0
 /// <summary>
 /// Returns a count of messages that is waiting for a given queue or
 /// all queues
 /// </summary>
 /// <param name="queueName"></param>
 public void GetWaitingQueueMessageCount(string queueName = null)
 {
     if (string.IsNullOrEmpty(queueName))
     {
         queueName = null;  // force all
     }
     using (var manager = new QueueMessageManagerSql())
     {
         int count = manager.GetWaitingQueueMessageCount(queueName);
         // broadcast to all clients
         Clients.All.getWaitingQueueMessageCountCallback(count);
     }
 }
        /// <summary>
        /// Returns a count of messages that is waiting for a given queue or
        /// all queues
        /// </summary>
        /// <param name="queueName"></param>
        public void GetWaitingQueueMessageCount(string queueName = null)
        {
            if (string.IsNullOrEmpty(queueName))
                queueName = null;  // force all

            using (var manager = new QueueMessageManagerSql())
            {
                int count = manager.GetWaitingQueueMessageCount(queueName);
                // broadcast to all clients
                Clients.All.getWaitingQueueMessageCountCallback(count);
            }
        }
        public void GetWaitingMessagesCountTest()
        {
            var manager = new QueueMessageManagerSql();

            int count = manager.GetWaitingQueueMessageCount();

            Assert.IsNotNull(count > -1);

            Console.WriteLine(count + " queued items waiting.");
        }
 public void GetWaitingQueueMessageCount()
 {
     using (var manager = new QueueMessageManagerSql())
     {
         int count = manager.GetWaitingQueueMessageCount(GlobalService.Controller.QueueName);
         // broadcast to all clients
         Clients.All.getWaitingQueueMessageCountCallback(count);
     }
 }