Apache.NMS.ActiveMQ.QueueBrowser.WaitForMessage C# (CSharp) Méthode

WaitForMessage() protected méthode

protected WaitForMessage ( ) : void
Résultat void
        protected void WaitForMessage()
        {
            try
            {
                lock(semaphore)
                {
                    Monitor.Wait(semaphore, 2000);
                }
            }
            catch(ThreadInterruptedException)
            {
                Thread.CurrentThread.Interrupt();
            }
        }