Method | Description | |
---|---|---|
Dispose ( ) : void |
Ends this task unsuccessfully, meaning that the 100% complete event will not fire. Call Progress.EndTask() to successfully end this task with 100% progress.
|
|
EnablePolling ( ) : |
Enables progress polling. Use CurrentProgress to retrieve the task's current progress. Returns the current progress task, so that methods may be chained.
|
|
EnablePolling ( ProgressDepth maximumDepth ) : |
Enables progress polling. Use CurrentProgress to retrieve the task's current progress. Returns the current progress task, so that methods may be chained.
|
|
EnablePolling ( int maximumDepth ) : |
Enables progress polling. Use CurrentProgress to retrieve the task's current progress. Returns the current progress task, so that methods may be chained.
|
|
EndTask ( ) : void |
Ends this task successfully, meaning that the 100% complete event will fire. This should be called before the task is disposed.
|
|
NextStep ( ) : void |
Advances the current progress task to the next step. Fires the progressChangedCallback callback.
|
|
NextStep ( object currentStepArg ) : void |
Advances the current progress task to the next step. Fires the progressChangedCallback callback.
|
|
ProgressTask ( IProgressCalculator calculator ) : System |
Pushes a new task to the top of the stack.
|
|
SetCallback ( ProgressChangedCallback callback ) : |
Attaches the callback to fire when progress is reported. This is usually called at the beginning of the task. Returns the current progress task, so that methods may be chained.
|
|
SetCallback ( ProgressChangedCallback callback, ProgressDepth maxDepth ) : |
Attaches the callback to fire when progress is reported. This is usually called at the beginning of the task. Returns the current progress task, so that methods may be chained.
|
|
SetCallbackEnded ( ProgressChangedCallback callback ) : |
Attaches the callback to fire when the progress task ends (successfully or not). This is usually attached at the beginning of the task. Returns the current progress task, so that methods may be chained.
|
|
SetMaxDepth ( ProgressDepth maxDepth ) : |
An integer value that determines the maximum number of nested progress tasks. Progress reported at deeper levels will be ignored. All negative values are equivalent to "Auto". Returns the current progress task, so that methods may be chained.
|
|
SetMaxDepth ( int maxDepth ) : |
An integer value that determines the maximum number of nested progress tasks. Progress reported at deeper levels will be ignored. All negative values are equivalent to "Auto". Returns the current progress task, so that methods may be chained.
|
|
SetTaskKey ( string newTaskKey ) : |
Changes the current task's TaskKey. This should only be called once per Task. Returns the current progress task, so that methods may be chained.
|
|
SetTaskKey ( string newTaskKey, object newTaskArg ) : |
Changes the current task's TaskKey. This should only be called once per Task. Returns the current progress task, so that methods may be chained.
|
|
ToString ( ) : string |
Method | Description | |
---|---|---|
EndTask ( bool completedSuccessfully ) : void |
Ends this task, firing the 100% complete event if necessary, and pops the Progress stack.
|
|
OnProgressChanged ( object currentStepArg ) : void |
Calculates the current progress, and invokes the callback for the current task and all parent tasks.
|
public EnablePolling ( ProgressDepth maximumDepth ) : |
||
maximumDepth | ProgressDepth | |
return |
public EnablePolling ( int maximumDepth ) : |
||
maximumDepth | int | |
return |
public NextStep ( object currentStepArg ) : void | ||
currentStepArg | object | This argument will be passed to the callback. Default is null . |
return | void |
public ProgressTask ( IProgressCalculator calculator ) : System | ||
calculator | IProgressCalculator | |
return | System |
public SetCallback ( ProgressChangedCallback callback ) : |
||
callback | ProgressChangedCallback | Attach a callback to the ProgressChanged event |
return |
public SetCallback ( ProgressChangedCallback callback, ProgressDepth maxDepth ) : |
||
callback | ProgressChangedCallback | Attach a callback to the ProgressChanged event |
maxDepth | ProgressDepth | An integer value that determines the maximum number of nested progress tasks. Progress reported at deeper levels will be ignored. All negative values are equivalent to "Auto". |
return |
public SetCallbackEnded ( ProgressChangedCallback callback ) : |
||
callback | ProgressChangedCallback | Attach a callback to the ProgressEnded event |
return |
public SetMaxDepth ( ProgressDepth maxDepth ) : |
||
maxDepth | ProgressDepth | An integer value that determines the maximum number of nested progress tasks. Progress reported at deeper levels will be ignored. All negative values are equivalent to "Auto". |
return |
public SetMaxDepth ( int maxDepth ) : |
||
maxDepth | int | An integer value that determines the maximum number of nested progress tasks. Progress reported at deeper levels will be ignored. All negative values are equivalent to "Auto". |
return |
public SetTaskKey ( string newTaskKey ) : |
||
newTaskKey | string | Identifies the task being performed. Can be used for displaying progress. |
return |
public SetTaskKey ( string newTaskKey, object newTaskArg ) : |
||
newTaskKey | string | Identifies the task being performed. Can be used for displaying progress. |
newTaskArg | object | Provides additional info about the task being performed |
return |