MessageReceiver.RenewLockAsync MessageReceiver.RenewLockAsync MessageReceiver.RenewLockAsync Method

Definition

Overloads

RenewLockAsync(String) RenewLockAsync(String) 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) 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) RenewLockAsync(String) 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.

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 String String

Lock token associated with the message.

Returns

The asynchronous operation.

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.

RenewLockAsync(Message) 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.

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

Parameters

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