IAsyncProgressNewT Method

Indicates that a new progress session is started that consists of maximumValue steps.

Definition

Namespace: KGySoft.Threading
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
void New<T>(
	T operationType,
	int maximumValue = 0,
	int currentValue = 0
)

Parameters

operationType  T
An instance of T that describes the type of the new operation.
maximumValue  Int32  (Optional)
Specifies the possible maximum steps of the new operation (the Increment method is recommended to be called later on if a parallel processing does not know or may reorder the current step). 0 means an operation with no separate steps. This parameter is optional.
Default value: 0.
currentValue  Int32  (Optional)
Specifies the initial current value for the new progress. Should be between 0 and maximumValue. This parameter is optional.
Default value: 0.

Type Parameters

T
The type of the operationType parameter.

See Also