AsyncConfig Class

KGy SOFT Drawing Libraries Help
Represents asynchronous configuration for IAsyncResult-returning methods.
Inheritance Hierarchy

SystemObject
  KGySoft.DrawingAsyncConfigBase
    KGySoft.DrawingAsyncConfig

Namespace:  KGySoft.Drawing
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.3.0
Syntax

public sealed class AsyncConfig : AsyncConfigBase

The AsyncConfig type exposes the following members.

Constructors

  NameDescription
Public methodAsyncConfig
Initializes a new instance of the AsyncConfig class.
Public methodAsyncConfig(AsyncCallback, FuncBoolean)
Initializes a new instance of the AsyncConfig class.
Top
Properties

  NameDescription
Public propertyCompletedCallback
Gets or sets a callback that will be invoked when the operation is completed.
Default value: .
Public propertyIsCancelRequestedCallback
Gets or sets a callback that can return whether cancellation has been requested.
Default value: .
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.
(Inherited from AsyncConfigBase.)
Public propertyProgress
Gets or sets an IDrawingProgress instance that can handle progress notifications.
Default value: .
(Inherited from AsyncConfigBase.)
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: .
(Inherited from AsyncConfigBase.)
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: .
(Inherited from AsyncConfigBase.)
Top
See Also

Reference