Apache.NMS.ActiveMQ.Util.SimplePriorityMessageDispatchChannel.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
        public void Start()
        {
            lock(this.mutex)
            {
                if(!Closed)
                {
                    this.running = true;
                    Monitor.PulseAll(this.mutex);
                }
            }
        }

Usage Example

 public void TestClose()
 {
     SimplePriorityMessageDispatchChannel channel = new SimplePriorityMessageDispatchChannel();
     channel.Start();
     Assert.IsTrue( channel.Running == true );
     Assert.IsTrue( channel.Closed == false );
     channel.Close();
     Assert.IsTrue( channel.Running == false );
     Assert.IsTrue( channel.Closed == true );
     channel.Start();
     Assert.IsTrue( channel.Running == false );
     Assert.IsTrue( channel.Closed == true );
 }
All Usage Examples Of Apache.NMS.ActiveMQ.Util.SimplePriorityMessageDispatchChannel::Start