public async Task <IConsumer> CreateConsumerAsync(ConsumerConfiguration configuration, CancellationToken cancellationToken) { var session = await CreateSession(cancellationToken).ConfigureAwait(false); var consumerBuilder = new ConsumerBuilder(_loggerFactory, _transactionsManager, session); return(await consumerBuilder.CreateAsync(configuration, cancellationToken).ConfigureAwait(false)); }