Esempio n. 1
0
        public void TestStartStop()
        {
            var nmsSession = new NmsSession(BrokerUrl, new TestApplication())
            {
                ProducerQueue = FerCommandQueue
            };

            nmsSession.Start();

            WaitFor(Connected, nmsSession, 10000);
            Assert.IsTrue(nmsSession.Connected, "Connection failed to start");

            nmsSession.Stop();

            WaitFor(Disconnected, nmsSession, 3000);
            Assert.IsFalse(nmsSession.Connected, "Did not disconnect");
        }
 public NmsQueueBrowserMessageConsumer(NmsConsumerId consumerId, NmsSession session,
                                       IDestination destination, string selector, bool noLocal) : base(consumerId, session, destination,
                                                                                                       selector, noLocal)
 {
 }