示例#1
0
        public void MoveAllErrorMessagesToOriginQueue(string errorQueue)
        {
            var mgr = new ErrorManager(ConnectionString);

            if (errorQueue.IsValid())
            {
                mgr.ReturnAll(errorQueue);
            }
            else
            {
                foreach (var queue in _monitorQueues.Where(q => q.Queue.Type == QueueType.Error))
                {
                    mgr.ReturnAll(queue.Queue.Name);
                }
            }
        }
        public void MoveAllErrorMessagesToOriginQueue(string errorQueue)
        {
            var mgr = new ErrorManager(ConnectionString);

              if( errorQueue.IsValid() )
            mgr.ReturnAll(errorQueue);
              else {

            foreach( var queue in _monitorQueues.Where(q => q.Queue.Type == QueueType.Error) ) {
              mgr.ReturnAll(queue.Queue.Name);
            }
              }
        }