public void RemoveConsumer(ConsumerId objectId) { connection.removeDispatcher(objectId); if (!this.closing) { consumers.Remove(objectId); } }
public void DisposeOf(ConsumerId objectId, long lastDeliveredSequenceId) { connection.removeDispatcher(objectId); this.lastDeliveredSequenceId = Math.Min(this.lastDeliveredSequenceId, lastDeliveredSequenceId); if (!this.closing) { consumers.Remove(objectId); } }