Apache.NMS.ActiveMQ.Transport.Mock.MockTransport.InjectCommand C# (CSharp) Method

InjectCommand() public method

Injects a Command into the Transports inbound message queue, the Commands in the inbound Queue are dispatched to the registered CommnadHandler instance for processing, this simulates receiving a message from an external source, e.g. receiving a new message from the Broker.
public InjectCommand ( Command command ) : void
command Command /// A ///
return void
        public void InjectCommand(Command command)
        {
            lock(this.receiveQueue)
            {
                this.receiveQueue.Enqueue(command);
            }

            this.asyncResponseTask.Wakeup();
        }