CMSThreadWrapT Method (ActionT, Boolean) |
Wraps the given method into CMSThread context
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 9.0.0
Syntax public static Action<T> Wrap<T>(
Action<T> action,
bool multipleThreads = false
)
Parameters
- action
- Type: SystemActionT
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
- T
Return Value
Type:
ActionTSee Also