예제 #1
0
 public async Task BecomeConsumer(Guid streamId, string providerToUse, string streamNamespace)
 {
     _providerToUseForConsumer = providerToUse;
     _consumer = ConsumerObserver.NewObserver(this._logger);
     await _consumer.BecomeConsumer(streamId, GetStreamProvider(providerToUse), streamNamespace);
 }
예제 #2
0
        public async Task StopBeingConsumer()
        {
            await _consumer.StopBeingConsumer(GetStreamProvider(_providerToUseForConsumer));

            _consumer = null;
        }