- TransferFileEventArgs
TransferFileEventArgs
Namespace: Shared.Communication
Assembly: SharedLib
Event arguments for transferring a fileConstructors
#ctor(String) | Constructor, used when initialising transfer between client/server |
#ctor(String,String) | Constructor, used when initialising transfer between client/server |
#ctor(String,UInt64,UInt64,TimeSpan,Double) | Constructor, used when file transfer is in progress or transfer is complete |
#ctor(String,UInt64,UInt64,TimeSpan,Double,String) | Constructor, used when file transfer is in progress or transfer is complete within the server |
Properties
ClientID | ClientID Only set server Side |
Received | Indicates the number of bytes sent/received |
Total | Returns the total number of bytes to send/receive |
Percentage | Returns the file download as a percentage |
FileName | Name of the file being transferred |
TimeTaken | Retrieves time span for how long the download/upload has taken |
TimeRemaining | Retrieves time span with time remaining |
TransferRate | Indicates the transfer speed, number of bytes per second |
TransferSpeed | Retrieves the transfer speed as a string (?? kb/s) |
Fields
SPEED_FORMAT | Used when calculating speed of transfer |