Click or drag to resize
CMSThreadWrapT1, T2 Method (ActionT1, T2, Boolean)
Wraps the given method into CMSThread context

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 9.0.0
Syntax
C#
public static Action<T1, T2> Wrap<T1, T2>(
	Action<T1, T2> action,
	bool multipleThreads = false
)

Parameters

action
Type: SystemActionT1, T2
Action to wrap
multipleThreads (Optional)
Type: SystemBoolean
If true, the wrapped method may be used by multiple threads. Use this parameter to ensure that all the threads receive the original context values.

Type Parameters

T1
T2

Return Value

Type: ActionT1, T2
See Also