Apache.NMS.Test.NMSTestSupport.UnregisterDurableConsumer C# (CSharp) Method

UnregisterDurableConsumer() protected method

Unregister a durable consumer for the given connection ID.
protected UnregisterDurableConsumer ( string connectionID, string consumerID ) : void
connectionID string Connection ID of the consumer.
consumerID string Name of the durable consumer.
return void
        protected void UnregisterDurableConsumer(string connectionID, string consumerID)
        {
            using(IConnection connection = CreateConnection(connectionID))
            {
                connection.Start();
                using(ISession session = connection.CreateSession(AcknowledgementMode.DupsOkAcknowledge))
                {
                    session.DeleteDurableConsumer(consumerID);
                }
            }
        }