Bewerken

Delen via


IEventHubReceiver.ReceiveAsync(Int32, TimeSpan) Method

Definition

Send an async message to the partition asking for more messages

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Azure.Messaging.EventHubs.EventData>> ReceiveAsync (int maxCount, TimeSpan waitTime);
abstract member ReceiveAsync : int * TimeSpan -> System.Threading.Tasks.Task<seq<Azure.Messaging.EventHubs.EventData>>
Public Function ReceiveAsync (maxCount As Integer, waitTime As TimeSpan) As Task(Of IEnumerable(Of EventData))

Parameters

maxCount
Int32

Max amount of message which should be delivered in this request

waitTime
TimeSpan

Wait time of this request

Returns

Applies to