IMessageSession.RenewSessionLockAsync Method

Definition

Renews the lock on the session specified by the SessionId. The lock will be renewed based on the setting specified on the entity.

public System.Threading.Tasks.Task RenewSessionLockAsync ();
abstract member RenewSessionLockAsync : unit -> System.Threading.Tasks.Task
Public Function RenewSessionLockAsync () As Task

Returns

Remarks

When you accept a session, the session is locked for this client instance by the service for a duration as specified during the Queue/Subscription creation. If processing of the session requires longer than this duration, the session-lock needs to be renewed. For each renewal, it resets the time the session is locked by the LockDuration set on the Entity.

Renewal of session renews all the messages in the session as well. Each individual message need not be renewed.

Applies to