C# Class Progression.ProgressCalculators.ProgressCalcUnknownTimer

Inheritance: ProgressCalcUnknown, IDisposable
Afficher le fichier Open project: scottrippey/Progression

Méthodes publiques

Méthode Description
Dispose ( ) : void
ProgressCalcUnknownTimer ( float estimatedDuration, float estimatedWeight, int interval, System.Progress parent ) : System

Represents an enhanced version of ProgressUnknown. Instead of waiting for sub-tasks to report progress, this task uses a timer to automatically report progress. As time ticks, progress gets closer to 100%, but never reaches it. Note that ProgressChanged events will fire on a different thread!

Private Methods

Méthode Description
timerCallback ( object state ) : void

This is the Timer callback:

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ProgressCalcUnknownTimer() public méthode

Represents an enhanced version of ProgressUnknown. Instead of waiting for sub-tasks to report progress, this task uses a timer to automatically report progress. As time ticks, progress gets closer to 100%, but never reaches it. Note that ProgressChanged events will fire on a different thread!
public ProgressCalcUnknownTimer ( float estimatedDuration, float estimatedWeight, int interval, System.Progress parent ) : System
estimatedDuration float The estimated duration of this task, in seconds
estimatedWeight float /// A value between 0.0 and 1.0 that determines how much weight to place on the estimatedDuration. /// For example, if estimatedDuration is 100 and estimatedWeight is .75, /// then when 100 seconds have completed, progress will be at 75%. /// /// This value cannot equal 0.0 or 1.0. ///
interval int The rate at which to update the progress, in milliseconds
parent System.Progress
Résultat System