public static Task <int> FetchAsync(this IConsumer consumer, OffsetResponse.Topic offset, int batchSize, Func <Message, Task> onMessageAsync, CancellationToken cancellationToken) { return(consumer.FetchAsync(offset.TopicName, offset.PartitionId, offset.Offset, batchSize, onMessageAsync, cancellationToken)); }
public static Task <IImmutableList <Message> > FetchMessagesAsync(this IConsumer consumer, OffsetResponse.Topic offset, int maxCount, CancellationToken cancellationToken) { return(consumer.FetchMessagesAsync(offset.TopicName, offset.PartitionId, offset.Offset, maxCount, cancellationToken)); }