Click or drag to resize
LockHelperExecuteOnceAcrossAppDomains Method
Ensures that the given action is executed only once at a time across all application domains using Mutex

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax
C#
public static void ExecuteOnceAcrossAppDomains(
	Action action,
	string mutexName,
	bool waitForCompletion = true
)

Parameters

action
Type: SystemAction
Action to execute
mutexName
Type: SystemString
Name of the Mutex to use
waitForCompletion (Optional)
Type: SystemBoolean
If true, the other callers wait for the action completion
See Also