Apache.NMS.Test.ConnectionTest.TwoConnections C# (CSharp) Method

TwoConnections() private method

private TwoConnections ( ) : void
return void
        public void TwoConnections()
        {
            using(IConnection connection1 = CreateConnection(null))
            {
                connection1.Start();
                using(IConnection connection2 = CreateConnection(null))
                {
                    // with the bug present we'll get an exception in connection2.start()
                    connection2.Start();
                }
            }
        }