TechTalk Genome v4.2

PessimisticLockArgs Constructor (Int32, ClientLockData, Boolean)

Initializes a new PessimisticLockArgs instance with the specified timeout value, and will create an overtake request, with the given reference data.

public PessimisticLockArgs(
   int millisecondsTimeout,
   ClientLockData overtakeReferenceLockData,
   bool explicitLock
);

Parameters

millisecondsTimeout
The time in milliseconds to wait when trying to aquire a pessimistic lock for an object.
overtakeReferenceLockData
The lock data of a previous try, used as a reference for the a lock overtake request.
explicitLock
Indicating whether to override the configured locking behaviour and lock the object in the Context on which the lock operation was called, or use the configured locking mechanism, delegating the lock. The default value is false.

Remarks

The lock request made with a PessimisticLockArgs created by this constructor will try to overtake the lock on the object specified. The overtake action will only succeed if the given object is still locked with the version we have in our refernce data, or all the locks issued on the object were freed.

Requirements

Namespace: TechTalk.Genome.Locking

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.4.4

Editions: Professional, Evaluation, Express

See Also

PessimisticLockArgs Class | TechTalk.Genome.Locking Namespace | PessimisticLockArgs Constructor Overload List | Timeout