LockHelperExecuteOnceInLifetime Method |
Ensures that the given action is executed only once
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax public static bool ExecuteOnceInLifetime(
Action action,
Object lockObject,
ref bool executedFlag
)
Parameters
- action
- Type: SystemAction
Action to execute - lockObject
- Type: SystemObject
Object to use for locking context to ensure only one load - executedFlag
- Type: SystemBoolean
Flag that indicates if the action was already executed
Return Value
Type:
BooleanSee Also