Skip to content

EventHubPartitionGeneratorReceiver Methods

Eventhub receiver which configured with data generator

ReceiveAsync(int, TimeSpan)

View source
public Task<IEnumerable<EventData>> ReceiveAsync(int maxCount, TimeSpan waitTime)
Send an async message to the partition asking for more messages

Parameters

maxCountint
Max amount of message which should be delivered in this request
waitTimeTimeSpan
Wait time of this request

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.