C# Class NanoByte.Common.Tasks.TaskSnapshot

Afficher le fichier Open project: nano-byte/common Class Usage Examples

Méthodes publiques

Méthode Description
TaskSnapshot ( TaskState state, bool unitsByte = false, long unitsProcessed, long unitsTotal = -1 ) : System

Create a new progress snapshot.

ToString ( ) : string

Private Methods

Méthode Description
UnitsToString ( long units ) : string

Method Details

TaskSnapshot() public méthode

Create a new progress snapshot.
public TaskSnapshot ( TaskState state, bool unitsByte = false, long unitsProcessed, long unitsTotal = -1 ) : System
state TaskState The current State of the task.
unitsByte bool true if and are measured in bytes; false if they are measured in generic units.
unitsProcessed long The number of units that have been processed so far.
unitsTotal long The total number of units that are to be processed; -1 for unknown.
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string