MessageReceiver.RenewLockAsync 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
RenewLockAsync(Message) |
Renews the lock on the message specified by the lock token. The lock will be renewed based on the setting specified on the queue. |
RenewLockAsync(String) |
Renews the lock on the message. The lock will be renewed based on the setting specified on the queue. New lock token expiry date and time in UTC format. |
RenewLockAsync(Message)
- Source:
- MessageReceiver.cs
Renews the lock on the message specified by the lock token. The lock will be renewed based on the setting specified on the queue.
public System.Threading.Tasks.Task RenewLockAsync (Microsoft.Azure.ServiceBus.Message message);
abstract member RenewLockAsync : Microsoft.Azure.ServiceBus.Message -> System.Threading.Tasks.Task
override this.RenewLockAsync : Microsoft.Azure.ServiceBus.Message -> System.Threading.Tasks.Task
Public Function RenewLockAsync (message As Message) As Task
Parameters
- message
- Message
Returns
Implements
Remarks
When a message is received in PeekLock mode, the message is locked on the server for this receiver instance for a duration as specified during the Queue/Subscription creation (LockDuration). If processing of the message requires longer than this duration, the lock needs to be renewed. For each renewal, it resets the time the message is locked by the LockDuration set on the Entity.
Applies to
RenewLockAsync(String)
- Source:
- MessageReceiver.cs
Renews the lock on the message. The lock will be renewed based on the setting specified on the queue. New lock token expiry date and time in UTC format.
public System.Threading.Tasks.Task<DateTime> RenewLockAsync (string lockToken);
abstract member RenewLockAsync : string -> System.Threading.Tasks.Task<DateTime>
override this.RenewLockAsync : string -> System.Threading.Tasks.Task<DateTime>
Public Function RenewLockAsync (lockToken As String) As Task(Of DateTime)
Parameters
- lockToken
- String
Lock token associated with the message.
Returns
Implements
Remarks
When a message is received in PeekLock mode, the message is locked on the server for this receiver instance for a duration as specified during the Queue/Subscription creation (LockDuration). If processing of the message requires longer than this duration, the lock needs to be renewed. For each renewal, it resets the time the message is locked by the LockDuration set on the Entity.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기