mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 22:29:03 +00:00
* Updated doc structure --------- Co-authored-by: docs-builder <docs-builder@localhost>
21 lines
463 B
Markdown
21 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}");
|
|
```
|