Share via


ProcessorReceiveActions Class

Definition

A set of receive-related actions that can be performed from the processor message callback.

public class ProcessorReceiveActions
type ProcessorReceiveActions = class
Public Class ProcessorReceiveActions
Inheritance
ProcessorReceiveActions

Constructors

ProcessorReceiveActions()

For mocking.

Methods

PeekMessagesAsync(Int32, Nullable<Int64>, CancellationToken)

Fetches a list of active messages without changing the state of the receiver or the message source.

ReceiveDeferredMessagesAsync(IEnumerable<Int64>, CancellationToken)

Receives a list of deferred ServiceBusReceivedMessage identified by sequenceNumbers. Messages received using this method are subject to the behavior defined in the AutoCompleteMessages and MaxAutoLockRenewalDuration properties.

ReceiveMessagesAsync(Int32, Nullable<TimeSpan>, CancellationToken)

Receives a list of ServiceBusReceivedMessage from the entity using ServiceBusReceiveMode mode configured in ReceiveMode, which defaults to PeekLock mode. This method doesn't guarantee to return exact maxMessages messages, even if there are maxMessages messages available in the queue or topic. Messages received using this method are subject to the behavior defined in the AutoCompleteMessages and MaxAutoLockRenewalDuration properties.

Applies to