Session. Renew Session Lock Async Method
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.
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
The asynchronous operation
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.