LockHelper Class |
Namespace: CMS.Base
public class LockHelper
The LockHelper type exposes the following members.
Name | Description | |
---|---|---|
![]() | LockHelper |
Name | Description | |
---|---|---|
![]() ![]() | EnsureT(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.
|
![]() ![]() | EnsureT(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.
|
![]() ![]() | ExecuteOnceInLifetime |
Ensures that the given action is executed only once
|
![]() ![]() | GetLockObject |
Gets the object for lock.
|