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);
}
}
}