AsyncContextWrapper Constructor
Namespace: KGySoft.ThreadingAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public AsyncContextWrapper(
IAsyncContext wrappedContext,
int maxDegreeOfParallelism,
bool forwardProgress = true
)
Public Sub New (
wrappedContext As IAsyncContext,
maxDegreeOfParallelism As Integer,
Optional forwardProgress As Boolean = true
)
public:
AsyncContextWrapper(
IAsyncContext^ wrappedContext,
int maxDegreeOfParallelism,
bool forwardProgress = true
)
new :
wrappedContext : IAsyncContext *
maxDegreeOfParallelism : int *
?forwardProgress : bool
(* Defaults:
let _forwardProgress = defaultArg forwardProgress true
*)
-> AsyncContextWrapper
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: .