MessageReceiver.OnTryReceive MessageReceiver.OnTryReceive MessageReceiver.OnTryReceive Method

Definition

Overloads

OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>) OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>) OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>)

Executes the try receive action.

OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>) OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>) OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>)

Executes the try receive action.

OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>) OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>) OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>)

Executes the try receive action.

protected:
 virtual bool OnTryReceive(Microsoft::ServiceBus::Tracing::TrackingContext ^ trackingContext, System::Collections::Generic::IEnumerable<long> ^ sequenceNumbers, TimeSpan timeout, [Runtime::InteropServices::Out] System::Collections::Generic::IEnumerable<Microsoft::ServiceBus::Messaging::BrokeredMessage ^> ^ % messages);
protected virtual bool OnTryReceive (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, System.Collections.Generic.IEnumerable<long> sequenceNumbers, TimeSpan timeout, out System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> messages);
abstract member OnTryReceive : Microsoft.ServiceBus.Tracing.TrackingContext * seq<int64> * TimeSpan *  -> bool
override this.OnTryReceive : Microsoft.ServiceBus.Tracing.TrackingContext * seq<int64> * TimeSpan *  -> bool
Parameters
trackingContext
TrackingContext TrackingContext TrackingContext

TrackingContext to use.

sequenceNumbers
IEnumerable<Int64>

The receipts.

timeout
TimeSpan TimeSpan TimeSpan

The timeout.

messages
IEnumerable<BrokeredMessage>

[out] The messages.

Returns

true if it succeeds, false if it fails.

OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>) OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>) OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>)

Executes the try receive action.

protected:
 virtual bool OnTryReceive(Microsoft::ServiceBus::Tracing::TrackingContext ^ trackingContext, int messageCount, TimeSpan serverWaitTime, [Runtime::InteropServices::Out] System::Collections::Generic::IEnumerable<Microsoft::ServiceBus::Messaging::BrokeredMessage ^> ^ % messages);
protected virtual bool OnTryReceive (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, int messageCount, TimeSpan serverWaitTime, out System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> messages);
abstract member OnTryReceive : Microsoft.ServiceBus.Tracing.TrackingContext * int * TimeSpan *  -> bool
override this.OnTryReceive : Microsoft.ServiceBus.Tracing.TrackingContext * int * TimeSpan *  -> bool
Parameters
trackingContext
TrackingContext TrackingContext TrackingContext

TrackingContext to use.

messageCount
Int32 Int32 Int32

Number of messages.

serverWaitTime
TimeSpan TimeSpan TimeSpan

The server wait time before it times out.

messages
IEnumerable<BrokeredMessage>

[out] The messages.

Returns

true if it succeeds, false if it fails.

Applies to