private void DisposeConsumer() { if (Consumer != null) { Consumer.ConsumerCancelled -= OnConsumerCancelled; Consumer.Dispose(); Consumer = null; } }
internal void Start() { Consumer = NewConsumer(MessageBus); Consumer.ConsumerCancelled += OnConsumerCancelled; Consumer.Start(); }