CMSThreadWrapT1, T2 Method (ActionT1, T2, Boolean) |
Wraps the given method into CMSThread context
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntax 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,
T2See Also