LockHelper ExecuteOnce Method Kentico 8.1 API Reference
Ensures that the given action is executed only once if raised from multiple threads to prevent contention. Returns true, if current thread executed the action, otherwise returns false

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

Parameters

action
Type: OnlineSystem Action
Action to execute
lockObject
Type: OnlineSystem Object
Object to use for locking context to ensure only one load

Return Value

Type: OnlineBoolean
See Also