LockHelper Ensure T  Method (T , Object)Kentico 8.1 API Reference
Ensures the value of the given variable in a locked context to prevent multiple loads. Uses the loadMethod to populate the value

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

variable
Type: T 
Variable to load
lockObject
Type: OnlineSystem Object
Object to use for locking context to ensure only one load

Return Value

Type: T
See Also