Pmad.ProgressTracking 0.1.14-g16d3d7334c

This is a prerelease version of Pmad.ProgressTracking.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Pmad.ProgressTracking --version 0.1.14-g16d3d7334c
                    
NuGet\Install-Package Pmad.ProgressTracking -Version 0.1.14-g16d3d7334c
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Pmad.ProgressTracking" Version="0.1.14-g16d3d7334c" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pmad.ProgressTracking" Version="0.1.14-g16d3d7334c" />
                    
Directory.Packages.props
<PackageReference Include="Pmad.ProgressTracking" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Pmad.ProgressTracking --version 0.1.14-g16d3d7334c
                    
#r "nuget: Pmad.ProgressTracking, 0.1.14-g16d3d7334c"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Pmad.ProgressTracking@0.1.14-g16d3d7334c
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Pmad.ProgressTracking&version=0.1.14-g16d3d7334c&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Pmad.ProgressTracking&version=0.1.14-g16d3d7334c&prerelease
                    
Install as a Cake Tool

Progress Toolkit

Long-running task progress tracking toolkit.

The API is not yet stable and may be subject to change.

General usage

You need to create a "Progress Render", to acquire an IProgressScope that will be the base to create detailed progress reports.

Multiple implementation exists (see below for example and preview) :

  • Console (ConsoleProgessRender),
  • WPF (ProgressViewModel),
  • Plain text (TextProgressRender)

On a scope you can create :

  • sub scope : a progress compose of sub-progress, you can give an estimated number of sub-progress to have an overall progress
  • integer/long based progress : your code have to report how many items it have been processed
  • percent based progress : your code have to report a progress in percent

To ease inter-operability, provided interfaces derives from IProgress<>.

Integer Progress (IProgressInteger)

using (var progress = scope.CreateInteger("Integer", 250))
{
    for (int i = 0; i < 250; i++)
    {
        // do something
        rep.ReportOneDone();
    }
}

or

using (var progress = scope.CreateInteger("Integer", 250))
{
    for (int i = 0; i < 250; i++)
    {
        // do something
        rep.Repport(i);
    }
}

Percent Progress (IProgressPercent)

using (var progress = scope.CreatePercent("Integer"))
{
    for (int i = 0; i < 250; i++)
    {
        // do something
        rep.Repport(i * 100.0 / 250);
    }
}

Scope (IProgressScope)

Console

Example: ConsoleDemo

WPF

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Pmad.ProgressTracking:

Package Downloads
Pmad.ProgressTracking.Wpf

Long-running task progress tracking: WPF frontend.

Pmad.Drawing

Library for vector based drawing with PDF, PNG/WEBP and SVG support.

Pmad.Cartography.Drawing

Library for drawing maps with PDF, PNG/WEBP and SVG support.

Pmad.Geometry.Processing

Mass-processing of geometry shapes

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Pmad.ProgressTracking:

Repository Stars
jetelain/ArmaRealMap
Tools to generate realistic Arma3 terrain from OpenStreetMap data in an highly automated process.
Version Downloads Last Updated
0.1.28 1,384 8/20/2024
0.1.22 310 8/19/2024
0.1.21-g5004465d93 216 8/19/2024
0.1.16-g0462b12943 230 8/18/2024
0.1.15-g3bac7775be 222 8/18/2024
0.1.14-g16d3d7334c 205 8/2/2024
0.1.13-g99634b7d95 274 6/23/2024