Ensures the value of the given variable in a locked context to prevent multiple loads. Uses the loadMethod to populate the value
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- variable
- Type: T
Variable to load
- loadMethod
- Type: System Func T
Methods that provides the variable value
- lockObject
- Type: System Object
Object to use for locking context to ensure only one load
Return Value
Type: TSee Also