Beispiel #1
0
        private async Task ProcessNextMessage(TopicSubscriberScope topicSubscriberScope, CancellationToken cancellationToken)
        {
            var messageResult = await topicSubscriberScope.GetNext(cancellationToken);

            await _localMessageDispatcher.Dispatch(messageResult.Message);

            if (_configuration.EnableAutoCommit == false)
            {
                await messageResult.Commit();
            }
        }
 public TopicSubscriberScopeFactoryStub(TopicSubscriberScope result)
 {
     _result = result;
 }