AsyncContextWrapper Constructor

Initializes a new instance of the AsyncContextWrapper class with the provided parameters.

Definition

Namespace: KGySoft.Threading
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public AsyncContextWrapper(
	IAsyncContext wrappedContext,
	int maxDegreeOfParallelism,
	bool forwardProgress = true
)

Parameters

wrappedContext  IAsyncContext
The original IAsyncContext instance to wrap.
maxDegreeOfParallelism  Int32
The new desired value of the MaxDegreeOfParallelism property. Though it's allowed, it is not recommended to report a higher value than the original, including reporting zero or negative when the original value was greater than zero.
forwardProgress  Boolean  (Optional)
to expose the original Progress property; suppress it. This parameter is optional
Default value: .

See Also