Click or drag to resize
CMSThreadWrapFuncTResult Method (FuncTResult, Boolean)
Wraps the given method into CMSThread context

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax
C#
public static Func<TResult> WrapFunc<TResult>(
	Func<TResult> action,
	bool multipleThreads = false
)

Parameters

action
Type: SystemFuncTResult
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

TResult

Return Value

Type: FuncTResult
See Also