Redpoint.ProgressMonitor 2026.1001.423

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Redpoint.ProgressMonitor --version 2026.1001.423
                    
NuGet\Install-Package Redpoint.ProgressMonitor -Version 2026.1001.423
                    
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="Redpoint.ProgressMonitor" Version="2026.1001.423" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Redpoint.ProgressMonitor" Version="2026.1001.423" />
                    
Directory.Packages.props
<PackageReference Include="Redpoint.ProgressMonitor" />
                    
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 Redpoint.ProgressMonitor --version 2026.1001.423
                    
#r "nuget: Redpoint.ProgressMonitor, 2026.1001.423"
                    
#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 Redpoint.ProgressMonitor@2026.1001.423
                    
#: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=Redpoint.ProgressMonitor&version=2026.1001.423
                    
Install as a Cake Addin
#tool nuget:?package=Redpoint.ProgressMonitor&version=2026.1001.423
                    
Install as a Cake Tool

Redpoint.ProgressMonitor

This library provides APIs for monitoring and reporting the progress of arbitrary operations in console applications.

Read on for the following examples:

Example for a generic stream

You can monitor an operation that uses a stream like so:

// Inject these services.
IProgressFactory _progressFactory;
IMonitorFactory _monitorFactory;

using (var stream = new FileStream(...))
{
    // Start monitoring.
    var cts = new CancellationTokenSource();
    var progress = _progressFactory.CreateProgressForStream(stream);
    var monitorTask = Task.Run(async () =>
    {
        var monitor = _monitorFactory.CreateByteBasedMonitor();
        await monitor.MonitorAsync(
            progress,
            SystemConsole.ConsoleInformation,
            SystemConsole.WriteProgressToConsole,
            cts.Token);
    });

    // e.g. hash the stream.
    byte[] hashBytes;
    using (var hasher = SHA256.Create())
    {
        hashBytes = await hasher.ComputeHashAsync(stream);
    }

    // Stop monitoring.
    await SystemConsole.CancelAndWaitForConsoleMonitoringTaskAsync(monitorTask, cts);
}

Example for a HTTP download

If you're reporting progress on a HTTP stream, there's a few extra things to keep in mind:

  • You need to pass HttpCompletionOption.ResponseHeadersRead as the completion option, or HttpClient will buffer the entire response by default.
  • You need to wrap the stream you read from in PositionAwareStream, which is a class provided by this library. Since the underlying HTTP stream does not support Position or Length, this wrapping stream tracks the position as the stream is read from and allows the length to be passed in as a constructor parameter (which you should set based on the Content-Length header).

Below is a concise example of how to show the progress of downloading a file:

using (var client = new HttpClient())
{
    using (var target = new FileStream(targetPath, FileMode.Create, FileAccess.Write, FileShare.None))
    {
        var response = await client.GetAsync(downloadUrl, HttpCompletionOption.ResponseHeadersRead);
        using (var stream = new PositionAwareStream(
            await response.Content.ReadAsStreamAsync(),
            response.Content.Headers.ContentLength!.Value))
        {
            var cts = new CancellationTokenSource();
            var progress = _progressFactory.CreateProgressForStream(stream);
            var monitorTask = Task.Run(async () =>
            {
                var monitor = _monitorFactory.CreateByteBasedMonitor();
                await monitor.MonitorAsync(
                    progress,
                    SystemConsole.ConsoleInformation,
                    SystemConsole.WriteProgressToConsole,
                    cts.Token);
            });

            await stream.CopyToAsync(target);
            
            await SystemConsole.CancelAndWaitForConsoleMonitoringTaskAsync(monitorTask, cts);
        }
    }
}

The SystemConsole static class

The SystemConsole type provides common values for monitoring parameters, such as the current console information and rendering progress information to the console. You should replace the static values in the examples above with your own callbacks and values if you're not rendering progress to the console.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Redpoint.ProgressMonitor:

Package Downloads
Redpoint.PackageManagement

Provides APIs for installing, upgrading and uninstalling packages with WinGet and Homebrew.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.1010.977 0 1/10/2026
2026.1010.965 0 1/10/2026
2026.1009.824 24 1/9/2026
2026.1009.809 23 1/9/2026
2026.1009.802 29 1/9/2026
2026.1009.791 21 1/9/2026
2026.1009.765 26 1/9/2026
2026.1009.706 23 1/9/2026
2026.1009.583 28 1/9/2026
2026.1008.839 41 1/8/2026
2026.1007.1022 59 1/7/2026
2026.1006.874 78 1/6/2026
2026.1006.796 78 1/6/2026
2026.1005.451 110 1/5/2026
2026.1005.318 108 1/5/2026
2026.1004.1209 107 1/4/2026
2026.1003.1337 109 1/3/2026
2026.1003.1326 108 1/3/2026
2026.1003.1176 102 1/3/2026
2026.1003.794 109 1/3/2026
2026.1003.454 108 1/3/2026
2026.1003.243 114 1/3/2026
2026.1002.1153 101 1/2/2026
2026.1002.1147 111 1/2/2026
2026.1001.659 113 1/1/2026
2026.1001.423 111 1/1/2026
2025.1364.603 113 12/30/2025
2025.1364.600 109 12/30/2025
2025.1364.398 108 12/30/2025
2025.1363.45 109 12/29/2025
2025.1363.44 104 12/29/2025
2025.1362.728 110 12/28/2025
2025.1358.1371 195 12/24/2025
2025.1356.172 187 12/22/2025
2025.1356.142 191 12/22/2025
2025.1356.104 189 12/22/2025
2025.1355.597 175 12/21/2025
2025.1355.582 174 12/21/2025
2025.1355.546 142 12/21/2025
2025.1355.525 133 12/21/2025
2025.1355.514 134 12/21/2025
2025.1355.507 137 12/21/2025
2025.1355.499 144 12/21/2025
2025.1355.401 136 12/21/2025
2025.1355.392 136 12/21/2025
2025.1355.381 150 12/21/2025
2025.1355.371 138 12/21/2025
2025.1355.334 129 12/21/2025
2025.1355.308 134 12/21/2025
2025.1355.183 140 12/21/2025
2025.1354.739 152 12/20/2025
2025.1354.731 154 12/20/2025
2025.1354.39 190 12/20/2025
2025.1353.662 257 12/19/2025
2025.1353.593 264 12/19/2025
2025.1353.526 261 12/19/2025
2025.1353.502 257 12/19/2025
2025.1353.489 257 12/19/2025
2025.1353.400 267 12/19/2025
2025.1353.367 272 12/19/2025
2025.1352.1431 296 12/18/2025
2025.1352.1424 284 12/18/2025
2025.1351.813 297 12/17/2025
2025.1351.758 287 12/17/2025
2025.1351.440 288 12/17/2025
2025.1350.557 292 12/16/2025
2025.1350.516 290 12/16/2025
2025.1350.182 288 12/16/2025
2025.1350.147 288 12/16/2025
2025.1349.1160 279 12/15/2025
2025.1346.566 147 12/12/2025
2025.1345.778 443 12/11/2025
2025.1345.725 442 12/11/2025
2025.1339.426 210 12/5/2025
2025.1338.774 224 12/4/2025
2025.1338.756 218 12/4/2025
2025.1338.613 215 12/4/2025
2025.1338.582 221 12/4/2025
2025.1338.547 221 12/4/2025
2025.1338.381 223 12/4/2025
2025.1338.290 217 12/4/2025
2025.1335.333 512 12/1/2025
2025.1335.278 502 12/1/2025
2025.1335.262 510 12/1/2025
2025.1333.376 132 11/29/2025
2025.1332.339 187 11/28/2025
2025.1328.632 211 11/24/2025
2025.1328.624 207 11/24/2025
2025.1328.41 210 11/24/2025
2025.1327.977 216 11/23/2025
2025.1327.893 188 11/23/2025
2025.1324.9 420 11/20/2025
2025.1324.1 428 11/20/2025
2025.1320.233 254 11/16/2025
2025.1320.190 167 11/16/2025
2025.1320.178 164 11/16/2025
2025.1320.84 163 11/16/2025
2025.1320.61 166 11/16/2025
2025.1319.659 191 11/15/2025
2025.1319.291 213 11/15/2025
2025.1318.1000 257 11/14/2025
2025.1317.1416 308 11/13/2025
2025.1302.173 222 10/29/2025
2025.1302.116 218 10/29/2025
2025.1302.93 217 10/29/2025
2025.1301.273 210 10/28/2025
2025.1289.355 210 10/16/2025
2025.1288.1067 205 10/15/2025
2025.1288.939 203 10/15/2025
2025.1288.731 207 10/15/2025
2025.1288.643 212 10/15/2025
2025.1288.584 215 10/15/2025
2025.1287.261 214 10/14/2025
2025.1287.213 205 10/14/2025
2025.1286.369 221 10/13/2025
2025.1276.372 195 10/3/2025
2025.1253.415 219 9/10/2025
2025.1251.740 200 9/8/2025
2025.1249.408 157 9/6/2025
2025.1245.159 216 9/2/2025
2025.1241.1004 245 8/29/2025
2025.1241.337 261 8/29/2025
2025.1241.335 264 8/29/2025
2025.1239.82 257 8/27/2025
2025.1236.697 248 8/24/2025
2025.1235.897 143 8/23/2025
2025.1234.740 171 8/22/2025
2025.1234.625 176 8/22/2025
2025.1234.484 182 8/22/2025
2025.1234.426 187 8/22/2025
2025.1234.329 185 8/22/2025
2025.1234.304 194 8/22/2025
2025.1234.279 196 8/22/2025
2025.1234.210 200 8/22/2025
2025.1234.185 193 8/22/2025
2025.1234.108 213 8/22/2025
2025.1234.70 211 8/22/2025
2025.1233.957 215 8/21/2025
2025.1233.933 206 8/21/2025
2025.1233.915 208 8/21/2025
2025.1233.885 200 8/21/2025
2025.1233.764 211 8/21/2025
2025.1233.694 208 8/21/2025
2025.1233.677 213 8/21/2025
2025.1233.212 209 8/21/2025
2025.1233.74 205 8/21/2025
2025.1233.72 206 8/21/2025
2025.1233.28 202 8/21/2025
2025.1232.155 215 8/20/2025
2025.1232.154 205 8/20/2025
2025.1232.104 204 8/20/2025
2025.1232.102 209 8/20/2025
2025.1231.1026 217 8/19/2025
2025.1231.941 221 8/19/2025
2025.1231.499 209 8/19/2025
2025.1231.484 205 8/19/2025
2025.1231.297 213 8/19/2025
2025.1230.859 207 8/18/2025
2025.1228.220 144 8/16/2025
2025.1227.934 172 8/15/2025
2025.1227.904 167 8/15/2025
2025.1227.852 169 8/15/2025
2025.1227.816 168 8/15/2025
2025.1227.77 206 8/15/2025
2025.1226.857 214 8/14/2025
2025.1226.472 218 8/14/2025
2025.1226.163 220 8/14/2025
2025.1222.583 217 8/10/2025
2025.1222.562 216 8/10/2025
2025.1222.437 214 8/10/2025
2025.1222.425 196 8/10/2025
2025.1220.271 275 8/8/2025
2025.1220.225 276 8/8/2025
2025.1220.80 282 8/8/2025
2025.1219.568 295 8/7/2025
2025.1219.546 291 8/7/2025
2025.1219.514 293 8/7/2025
2025.1219.513 289 8/7/2025
2025.1219.511 279 8/7/2025
2025.1219.421 290 8/7/2025
2025.1219.377 291 8/7/2025
2025.1219.362 299 8/7/2025
2025.1219.361 289 8/7/2025
2025.1218.1281 295 8/6/2025
2025.1218.1266 298 8/6/2025
2025.1218.1264 293 8/6/2025
2025.1218.1255 293 8/6/2025
2025.1218.1223 297 8/6/2025
2025.1218.1180 285 8/6/2025
2025.1218.1166 286 8/6/2025
2025.1218.1154 282 8/6/2025
2025.1218.1088 300 8/6/2025
2025.1218.595 288 8/6/2025
2025.1218.554 296 8/6/2025
2025.1218.544 290 8/6/2025
2025.1218.523 291 8/6/2025
2025.1218.499 295 8/6/2025
2025.1218.427 298 8/6/2025
2025.1218.415 296 8/6/2025
2025.1218.187 297 8/6/2025
2025.1218.174 296 8/6/2025
2025.1218.148 295 8/6/2025
2025.1218.123 286 8/6/2025
2025.1217.886 292 8/5/2025
2025.1217.560 295 8/5/2025
2025.1217.516 293 8/5/2025
2025.1217.512 299 8/5/2025
2025.1217.503 301 8/5/2025
2025.1216.1103 258 8/4/2025
2025.1216.1025 252 8/4/2025
2025.1216.978 234 8/4/2025
2025.1216.897 231 8/4/2025
2025.1216.893 235 8/4/2025
2025.1216.884 235 8/4/2025
2025.1216.873 234 8/4/2025
2025.1216.824 228 8/4/2025
2025.1216.767 236 8/4/2025
2025.1216.745 235 8/4/2025
2025.1216.411 208 8/4/2025
2025.1216.396 210 8/4/2025
2025.1216.386 206 8/4/2025
2025.1216.357 207 8/4/2025
2025.1216.347 199 8/4/2025
2025.1216.334 211 8/4/2025
2025.1216.319 203 8/4/2025
2025.1215.930 174 8/3/2025
2025.1215.928 177 8/3/2025
2025.1215.911 179 8/3/2025
2025.1215.892 177 8/3/2025
2025.1215.842 175 8/3/2025
2025.1209.1064 169 7/28/2025
2025.1209.1061 165 7/28/2025
2025.1209.1047 175 7/28/2025
2025.1209.1038 170 7/28/2025
2025.1209.1034 171 7/28/2025
2025.1209.948 177 7/28/2025
2025.1209.881 185 7/28/2025
2025.1209.773 187 7/28/2025
2025.1209.765 181 7/28/2025
2025.1209.758 181 7/28/2025
2025.1209.727 196 7/28/2025
2025.1209.658 182 7/28/2025
2025.1209.300 185 7/28/2025
2025.1209.284 182 7/28/2025
2025.1209.264 180 7/28/2025
2025.1209.227 183 7/28/2025
2025.1209.198 179 7/28/2025
2025.1209.179 193 7/28/2025
2025.1208.826 198 7/27/2025
2025.1208.627 161 7/27/2025
2025.1208.617 162 7/27/2025
2025.1208.570 160 7/27/2025
2025.1208.568 167 7/27/2025
2025.1208.566 168 7/27/2025
2025.1206.491 498 7/25/2025
2025.1206.247 529 7/25/2025
2025.1205.230 542 7/24/2025
2025.1203.826 604 7/22/2025
2025.1202.906 554 7/21/2025
2025.1202.904 555 7/21/2025
2025.1202.283 477 7/21/2025
2025.1201.470 307 7/20/2025
2025.1199.287 194 7/18/2025
2025.1198.1048 212 7/17/2025
2025.1198.682 212 7/17/2025
2025.1198.638 208 7/17/2025
2025.1198.574 211 7/17/2025
2025.1198.187 219 7/17/2025
2025.1191.922 219 7/10/2025
2025.1191.235 225 7/10/2025
2025.1190.175 212 7/9/2025
2025.1189.851 215 7/8/2025
2025.1189.841 224 7/8/2025
2025.1187.587 218 7/6/2025
2025.1183.853 228 7/2/2025
2025.1181.644 208 6/30/2025
2025.1175.340 231 6/24/2025
2025.1174.62 220 6/23/2025
2025.1171.352 214 6/20/2025
2025.1169.413 214 6/18/2025
2025.1166.1191 214 6/15/2025
2025.1166.1178 217 6/15/2025
2025.1166.1177 211 6/15/2025
2025.1159.445 194 6/8/2025
2025.1159.364 188 6/8/2025
2025.1159.324 195 6/8/2025
2025.1155.438 219 6/4/2025
2025.1141.1424 221 5/21/2025
2025.1140.383 224 5/20/2025
2025.1140.377 221 5/20/2025
2025.1139.983 221 5/19/2025
2025.1139.952 218 5/19/2025
2025.1139.941 230 5/19/2025
2025.1139.855 230 5/19/2025
2025.1139.850 221 5/19/2025
2025.1139.837 215 5/19/2025
2025.1139.811 224 5/19/2025
2025.1139.806 223 5/19/2025
2025.1139.796 224 5/19/2025
2025.1139.729 220 5/19/2025
2025.1139.719 219 5/19/2025
2025.1139.706 224 5/19/2025
2025.1139.694 223 5/19/2025
2025.1139.679 224 5/19/2025
2025.1139.662 216 5/19/2025
2025.1139.638 199 5/19/2025
2025.1139.628 201 5/19/2025
2025.1139.626 207 5/19/2025
2025.1139.619 204 5/19/2025
2025.1139.605 201 5/19/2025
2025.1139.600 206 5/19/2025
2025.1139.583 218 5/19/2025
2025.1139.573 201 5/19/2025
2025.1139.564 204 5/19/2025
2025.1139.552 201 5/19/2025
2025.1139.543 208 5/19/2025
2025.1138.909 205 5/18/2025
2025.1136.150 277 5/16/2025
2025.1135.267 281 5/15/2025
2025.1135.143 282 5/15/2025
2025.1133.453 283 5/13/2025
2025.1133.351 291 5/13/2025
2025.1133.349 294 5/13/2025
2025.1133.347 293 5/13/2025
2025.1130.236 136 5/10/2025
2025.1129.831 165 5/9/2025
2025.1129.346 1,162 5/9/2025
2023.1176.407 264 6/25/2023
2023.1176.396 224 6/25/2023
2023.1176.363 242 6/25/2023
2023.1176.360 271 6/25/2023
2023.1175.638 231 6/24/2023
2023.1170.907 225 6/19/2023
2023.1170.900 230 6/19/2023
2023.1167.562 225 6/16/2023
2023.1167.556 237 6/16/2023
2023.1167.496 255 6/16/2023
2023.1166.1008 247 6/15/2023
2023.1166.938 223 6/15/2023
2023.1166.713 246 6/15/2023
2023.1166.699 228 6/15/2023
2023.1165.1065 241 6/14/2023
2023.1165.888 238 6/14/2023
2023.1165.878 240 6/14/2023
2023.1165.861 230 6/14/2023
2023.1165.828 248 6/14/2023
2023.1165.686 246 6/14/2023
2023.1165.653 236 6/14/2023
2023.377.1003 320 5/31/2023
2023.377.909 260 5/31/2023
2023.377.558 259 5/31/2023
2023.365.1417 304 5/30/2023
2023.365.1350 252 5/30/2023
2023.365.1327 239 5/30/2023
2023.365.1306 263 5/30/2023
2023.365.1198 266 5/30/2023
2023.365.1046 250 5/30/2023
2023.365.710 248 5/30/2023
2023.365.703 257 5/30/2023
2023.365.336 257 5/30/2023
2023.174.636 247 6/14/2023
2023.174.616 229 6/14/2023
2023.174.442 240 6/14/2023
2023.162.1243 237 6/13/2023
2023.162.1225 246 6/13/2023
2023.162.1023 229 6/13/2023
2023.162.948 234 6/13/2023
2023.162.865 232 6/13/2023
2023.162.770 265 6/13/2023
2023.162.734 248 6/13/2023
2023.162.701 245 6/13/2023
2023.162.470 259 6/13/2023
2023.162.418 237 6/13/2023
2023.150.1142 237 6/12/2023
2023.150.1121 243 6/12/2023
2023.150.1095 244 6/12/2023
2023.150.1081 228 6/12/2023
2023.150.1066 240 6/12/2023
2023.150.999 233 6/12/2023
2023.150.916 263 6/12/2023
2023.150.865 241 6/12/2023
2023.150.831 240 6/12/2023
2023.150.774 239 6/12/2023
2023.150.613 233 6/12/2023
2023.150.558 247 6/12/2023
2023.150.456 263 6/12/2023
2023.150.450 262 6/12/2023
2023.150.220 261 6/12/2023
2023.150.179 261 6/12/2023
2023.150.167 275 6/12/2023
2023.138.864 248 6/11/2023
2023.138.837 243 6/11/2023
2023.138.363 252 6/11/2023
2023.138.224 288 6/11/2023
2023.138.213 229 6/11/2023
2023.126.1167 260 6/11/2023
2023.126.1148 250 6/10/2023
2023.126.838 265 6/10/2023
2023.126.794 258 6/10/2023
2023.126.745 256 6/10/2023
2023.126.714 270 6/10/2023
2023.126.662 268 6/10/2023
2023.114.544 246 6/9/2023
2023.114.351 250 6/9/2023
2023.90.1030 262 6/7/2023
2023.90.1009 238 6/7/2023
2023.54.1152 240 6/4/2023
2023.54.419 267 6/4/2023
2023.54.198 245 6/4/2023
2023.54.60 231 6/4/2023
2023.54.48 261 6/4/2023
2023.42.745 245 6/3/2023
2023.30.1191 246 6/2/2023
2023.30.1172 262 6/2/2023
2023.30.1163 253 6/2/2023
2023.30.1147 250 6/2/2023
2023.30.1136 280 6/2/2023
2023.30.765 267 6/2/2023
2023.30.761 253 6/2/2023
2023.30.747 267 6/2/2023
2023.30.734 255 6/2/2023