public async Task BecomeConsumer(Guid streamId, string providerToUse, string streamNamespace) { _providerToUseForConsumer = providerToUse; _consumer = ConsumerObserver.NewObserver(this._logger); await _consumer.BecomeConsumer(streamId, GetStreamProvider(providerToUse), streamNamespace); }
public async Task StopBeingConsumer() { await _consumer.StopBeingConsumer(GetStreamProvider(_providerToUseForConsumer)); _consumer = null; }