C# Class NanoByte.Common.Tasks.TaskSnapshot

Exibir arquivo Open project: nano-byte/common Class Usage Examples

Public Methods

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

Create a new progress snapshot.

ToString ( ) : string

Private Methods

Method Description
UnitsToString ( long units ) : string

Method Details

TaskSnapshot() public method

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.
return System

ToString() public method

public ToString ( ) : string
return string