master
md 20 lines 463 Bytes
Rendered Raw
1 # ImageProgress
2
3 Progress payload for pull/import/load/push operations.
4
5 ```csharp
6 public sealed class ImageProgress
7 {
8 public string Id { get; }
9 public ImageProgressStatus Status { get; }
10 public ulong CurrentBytes { get; }
11 public ulong TotalBytes { get; }
12 }
13 ```
14
15 Example:
16
17 ```csharp
18 void PrintImageProgress(ImageProgress progress) =>
19 Console.WriteLine($"{progress.Status,-12} {progress.Id} {progress.CurrentBytes}/{progress.TotalBytes}");
20 ```