Compartir a través de


IEventHubReceiver.ReceiveAsync(Int32, TimeSpan) Método

Definición

Envío de un mensaje asincrónico a la partición que solicita más mensajes

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.EventData>> ReceiveAsync (int maxCount, TimeSpan waitTime);
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.EventHubs.EventData>> ReceiveAsync (int maxCount, TimeSpan waitTime);
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<Microsoft.ServiceBus.Messaging.EventData>>
abstract member ReceiveAsync : int * TimeSpan -> System.Threading.Tasks.Task<seq<Microsoft.Azure.EventHubs.EventData>>
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))

Parámetros

maxCount
Int32

Cantidad máxima de mensaje que se debe entregar en esta solicitud

waitTime
TimeSpan

Tiempo de espera de esta solicitud

Devoluciones

Se aplica a