MessageReceiver.OnPeek Method (TrackingContext, Int64, Int32, TimeSpan)

 

Executes upon calling the Peek operation.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

protected virtual IEnumerable<BrokeredMessage> OnPeek(
	TrackingContext trackingContext,
	long fromSequenceNumber,
	int messageCount,
	TimeSpan timeout
)

Parameters

trackingContext
Type: Microsoft.ServiceBus.Tracing.TrackingContext

The tracking context.

fromSequenceNumber
Type: System.Int64

The sequence number from where to peek.

messageCount
Type: System.Int32

The number of message.

timeout
Type: System.TimeSpan

The time span the operation waits before it times out.

Return Value

Type: System.Collections.Generic.IEnumerable<BrokeredMessage>

The messages peeked.

Return to top
Show: