AsyncConfigBase Class

KGy SOFT Drawing Libraries Help
Represents the base class for configuration of asynchronous operations.
Inheritance Hierarchy


Namespace:  KGySoft.Drawing
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.3.1

public abstract class AsyncConfigBase

The AsyncConfigBase type exposes the following members.


Protected methodAsyncConfigBase
Initializes a new instance of the AsyncConfigBase class

Public propertyMaxDegreeOfParallelism
Gets or sets the maximum degree of parallelism. Zero or less means an automatic configuration based on CPU cores. Set one to execute the operation on a single core. The asynchronous operation will not be blocking even if 1 is set.
Default value: 0.
Public propertyProgress
Gets or sets an IDrawingProgress instance that can handle progress notifications.
Default value: .
Public propertyState
Gets or sets a user-provided object that will be returned by the AsyncState property that can be used to distinguish this particular asynchronous operation from other ones.
Default value: .
Public propertyThrowIfCanceled
Gets or sets whether an OperationCanceledException should be thrown when ending or awaiting a canceled async operation. If the value of this property is , then canceled operations with a return value will return the default value of their return type.
Default value: .
See Also