MessageSession.OnTryReceive Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>) |
Executes the try receive action. |
OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>) |
Executes the try receive action. |
OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>)
Executes the try receive action.
protected override bool OnTryReceive (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, System.Collections.Generic.IEnumerable<long> receipts, TimeSpan timeout, out System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> messages);
override this.OnTryReceive : Microsoft.ServiceBus.Tracing.TrackingContext * seq<int64> * TimeSpan * seq -> bool
Protected Overrides Function OnTryReceive (trackingContext As TrackingContext, receipts As IEnumerable(Of Long), timeout As TimeSpan, ByRef messages As IEnumerable(Of BrokeredMessage)) As Boolean
Parameters
- trackingContext
- TrackingContext
TrackingContext to use.
- receipts
- IEnumerable<Int64>
The receipts.
- timeout
- TimeSpan
The timeout.
- messages
- IEnumerable<BrokeredMessage>
the output message (out)
Returns
Applies to
OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>)
Executes the try receive action.
protected override bool OnTryReceive (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, int messageCount, TimeSpan serverWaitTime, out System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> messages);
override this.OnTryReceive : Microsoft.ServiceBus.Tracing.TrackingContext * int * TimeSpan * seq -> bool
Protected Overrides Function OnTryReceive (trackingContext As TrackingContext, messageCount As Integer, serverWaitTime As TimeSpan, ByRef messages As IEnumerable(Of BrokeredMessage)) As Boolean
Parameters
- trackingContext
- TrackingContext
TrackingContext to use.
- messageCount
- Int32
The number of messages.
- serverWaitTime
- TimeSpan
The server wait time before it times out.
- messages
- IEnumerable<BrokeredMessage>
returned messages.
Returns
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET