Пример #1
0
 private static void PrintStatus(DownloadProgressStatus task)
 {
     Console.WriteLine("================");
     Console.WriteLine($"Status: {task.Status}");
     Console.WriteLine($"Download: {task.DownloadSpeed:N0} B/s Upload: {task.UploadSpeed:N0} B/s");
     Console.WriteLine("Files:");
     foreach (var file in task.Files !)
     {
         Console.Write($"{file.CompletedLength:N0}B/{file.Length:N0}B\t\t");
         Console.ForegroundColor = ConsoleColor.DarkCyan;
         Console.WriteLine(file.Path);
         Console.ResetColor();
     }
 }
Пример #2
0
 internal void Load(DownloadProgressStatus rpcResponse)
 {
     RpcResponse = rpcResponse;
     StatusUpdated?.Invoke();
 }