Dela via


IDurableOrchestrationContext.IsLocked(IReadOnlyList<EntityId>) Method

Definition

Determines whether the current context is locked, and if so, what locks are currently owned.

public bool IsLocked (out System.Collections.Generic.IReadOnlyList<Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId> ownedLocks);
abstract member IsLocked : IReadOnlyList -> bool
Public Function IsLocked (ByRef ownedLocks As IReadOnlyList(Of EntityId)) As Boolean

Parameters

ownedLocks
IReadOnlyList<EntityId>

The collection of owned locks.

Returns

true if the context already holds some locks.

Remarks

Note that the collection of owned locks can be empty even if the context is locked. This happens if an orchestration calls a suborchestration without lending any locks.

Applies to