Skip to content

EventHubPartitionGeneratorReceiver.ReceiveAsync(int, TimeSpan, CancellationToken)

ReceiveAsync(int, TimeSpan, CancellationToken)

View source
public Task<IEnumerable<EventData>> ReceiveAsync(int maxCount, TimeSpan waitTime, CancellationToken cancellationToken)
Sends an asynchronous request for more messages from the partition.

Parameters

maxCountint
The maximum number of messages to return.
waitTimeTimeSpan
The maximum wait time.
cancellationTokenCancellationToken
The token used to cancel the operation.

Returns

The received messages.