mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 06:09:04 +00:00
20 lines
463 B
Markdown
20 lines
463 B
Markdown
# ImageProgress
|
|||
|
|
|
||
|
|
Progress payload for pull/import/load/push operations.
|
||
|
|
|
||
|
|
```csharp
|
||
|
|
public sealed class ImageProgress
|
||
|
|
{
|
||
|
|
public string Id { get; }
|
||
|
|
public ImageProgressStatus Status { get; }
|
||
|
|
public ulong CurrentBytes { get; }
|
||
|
|
public ulong TotalBytes { get; }
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
Example:
|
||
|
|
|
||
|
|
```csharp
|
||
|
|
void PrintImageProgress(ImageProgress progress) =>
|
||
|
|
Console.WriteLine($"{progress.Status,-12} {progress.Id} {progress.CurrentBytes}/{progress.TotalBytes}");
|
||
|
|
```
|