QueueClient.ReceiveAsync Method

Definition

Overloads

ReceiveAsync(TimeSpan)

Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.QueueClient.InternalReceiver.

ReceiveAsync()

Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.QueueClient.InternalReceiver.

ReceiveAsync(Int64)

Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.QueueClient.InternalReceiver.

ReceiveAsync(TimeSpan)

Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.QueueClient.InternalReceiver.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveAsync (TimeSpan serverWaitTime);
Parameters
serverWaitTime
TimeSpan

The time span the server waits for receiving a message before it times out.

Returns

The asynchronous operation.

ReceiveAsync()

Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.QueueClient.InternalReceiver.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveAsync ();
Returns

The asynchronous operation.

ReceiveAsync(Int64)

Asynchronously receives a message using the Microsoft.ServiceBus.Messaging.QueueClient.InternalReceiver.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> ReceiveAsync (long sequenceNumber);
Parameters
sequenceNumber
Int64

The sequence number of the deferred message to receive.

Returns

The asynchronous operation.