SubscriptionClient.ReceiveBatchAsync Method

Definition

Overloads

ReceiveBatchAsync(Int32)

Asynchronously receives a set of messages (for batch processing).

ReceiveBatchAsync(Int32, TimeSpan)

Asynchronously receives a set of messages (for batch processing).

ReceiveBatchAsync(IEnumerable<Int64>)

Asynchronously receives a set of messages (for batch processing).

ReceiveBatchAsync(Int32)

Asynchronously receives a set of messages (for batch processing).

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> ReceiveBatchAsync (int messageCount);
Parameters
messageCount
Int32

The number of messages to return in the batch. As this is an approximation, fewer or more messages than messageCount may be returned.

Returns

A task instance that represents the asynchronous receive batch operation.

ReceiveBatchAsync(Int32, TimeSpan)

Asynchronously receives a set of messages (for batch processing).

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> ReceiveBatchAsync (int messageCount, TimeSpan serverWaitTime);
Parameters
messageCount
Int32

The number of messages to return in the batch. As this is an approximation, fewer or more messages than messageCount may be returned.

serverWaitTime
TimeSpan

The time span the server waits for processing messages.

Returns

A task instance that represents the asynchronous receive batch operation.

ReceiveBatchAsync(IEnumerable<Int64>)

Asynchronously receives a set of messages (for batch processing).

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage>> ReceiveBatchAsync (System.Collections.Generic.IEnumerable<long> sequenceNumbers);
Parameters
sequenceNumbers
IEnumerable<Int64>

The sequence number.

Returns

A task instance that represents the asynchronous receive batch operation.

Applies to