LockHelper ExecuteOnceInLifetime Method Kentico 8.0 API Reference
Ensures that the given action is executed only once

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

Parameters

action
Type: OnlineSystem Action
Action to execute
lockObject
Type: OnlineSystem Object
Object to use for locking context to ensure only one load
executedFlag
Type: OnlineSystem Boolean 
Flag that indicates if the action was already executed

Return Value

Type: OnlineBoolean
See Also