Click or drag to resize
LockHelper Class
Class to provide lock objects based on the given key.
Inheritance Hierarchy
SystemObject
  CMS.BaseLockHelper

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 9.0.0
Syntax
C#
public class LockHelper

The LockHelper type exposes the following members.

Constructors
  NameDescription
Public methodLockHelper
Top
Methods
  NameDescription
Public methodStatic memberEnsureT(T, Object)
Ensures the value of the given variable in a locked context to prevent multiple loads. Uses the default constructor of T to initialize the value.
Public methodStatic memberEnsureT(T, FuncT, Object)
Ensures the value of the given variable in a locked context to prevent multiple loads. Uses the loadMethod to initialize the value.
Public methodStatic memberEnter Obsolete.
Acquires an exclusive lock on the given lock object
Public methodStatic memberExecuteOnceInLifetime
Ensures that the given action is executed only once
Public methodStatic memberExit Obsolete.
Releases an exclusive lock using the given lock object
Public methodStatic memberGetLockObject
Gets the object for lock.
Public methodStatic memberTryEnter Obsolete.
Attempts to acquire an exclusive lock on the given object
Top
See Also