示例#1
0
 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));
 }
示例#2
0
 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));
 }