Skip to content

ExportProgress

Namespace Nfty.Core.Publish in assembly Nfty.Core.

public record ExportProgress

How far an export has got.

Remarks

A step is a FILE, and the sheet is counted in the same units as everything else. An export is one long stretch of copying with an optional image stitch in front of it, and a bar that ran to the end and then sat still through the slowest part of the run would be worse than no bar. So stitching one asset and copying one file are each one step, which makes the fraction roughly track the work rather than the file count.

Constructors

ExportProgress(int, int, string)

public ExportProgress(int Done, int Total, string Phase);

Parameters

  • Done (int) - Steps finished.
  • Total (int) - Steps in the whole run.
  • Phase (string) - What is happening, in the words a person would use.

Remarks

A step is a FILE, and the sheet is counted in the same units as everything else. An export is one long stretch of copying with an optional image stitch in front of it, and a bar that ran to the end and then sat still through the slowest part of the run would be worse than no bar. So stitching one asset and copying one file are each one step, which makes the fraction roughly track the work rather than the file count.

Properties

Done

public int Done { get; init; }

Steps finished.

Fraction

public double Fraction { get; }

Progress as a 0..1 fraction. Zero when there is nothing to do.

Phase

public string Phase { get; init; }

What is happening, in the words a person would use.

Total

public int Total { get; init; }

Steps in the whole run.