Redpoint.ProgressMonitor 2025.1355.499

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Redpoint.ProgressMonitor --version 2025.1355.499
                    
NuGet\Install-Package Redpoint.ProgressMonitor -Version 2025.1355.499
                    
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="2025.1355.499" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Redpoint.ProgressMonitor" Version="2025.1355.499" />
                    
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 2025.1355.499
                    
#r "nuget: Redpoint.ProgressMonitor, 2025.1355.499"
                    
#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@2025.1355.499
                    
#: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=2025.1355.499
                    
Install as a Cake Addin
#tool nuget:?package=Redpoint.ProgressMonitor&version=2025.1355.499
                    
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.1022.253 75 1/22/2026
2026.1022.226 70 1/22/2026
2026.1022.115 76 1/22/2026
2026.1020.299 102 1/20/2026
2026.1020.118 108 1/20/2026
2026.1019.475 111 1/19/2026
2026.1017.447 112 1/17/2026
2026.1016.502 113 1/16/2026
2026.1016.365 115 1/16/2026
2026.1016.361 112 1/16/2026
2026.1016.319 110 1/16/2026
2026.1016.229 113 1/16/2026
2026.1016.60 115 1/16/2026
2026.1016.12 110 1/16/2026
2026.1015.1374 110 1/15/2026
2026.1015.569 112 1/15/2026
2026.1015.436 109 1/15/2026
2026.1015.386 107 1/15/2026
2026.1015.289 107 1/15/2026
2026.1015.172 108 1/15/2026
2026.1015.15 111 1/15/2026
2026.1014.895 110 1/14/2026
2026.1014.557 113 1/14/2026
2026.1014.491 107 1/14/2026
2026.1014.376 111 1/14/2026
2026.1014.317 111 1/14/2026
2026.1014.281 110 1/14/2026
2026.1014.244 105 1/14/2026
2026.1014.206 107 1/14/2026
2026.1014.163 107 1/14/2026
2026.1014.160 108 1/14/2026
2026.1013.148 115 1/13/2026
2026.1012.514 112 1/12/2026
2026.1012.418 105 1/12/2026
2026.1011.484 113 1/11/2026
2026.1011.348 110 1/11/2026
2026.1011.333 110 1/11/2026
2026.1011.271 117 1/11/2026
2026.1011.270 110 1/11/2026
2026.1011.99 114 1/11/2026
2026.1010.977 113 1/10/2026
2026.1010.965 113 1/10/2026
2026.1009.824 113 1/9/2026
2026.1009.809 108 1/9/2026
2026.1009.802 114 1/9/2026
2026.1009.791 105 1/9/2026
2026.1009.765 112 1/9/2026
2026.1009.706 111 1/9/2026
2026.1009.583 111 1/9/2026
2026.1008.839 117 1/8/2026
2026.1007.1022 110 1/7/2026
2026.1006.874 110 1/6/2026
2026.1006.796 111 1/6/2026
2026.1005.451 115 1/5/2026
2026.1005.318 114 1/5/2026
2026.1004.1209 113 1/4/2026
2026.1003.1337 114 1/3/2026
2026.1003.1326 115 1/3/2026
2026.1003.1176 106 1/3/2026
2026.1003.794 112 1/3/2026
2026.1003.454 114 1/3/2026
2026.1003.243 117 1/3/2026
2026.1002.1153 104 1/2/2026
2026.1002.1147 115 1/2/2026
2026.1001.659 121 1/1/2026
2026.1001.423 114 1/1/2026
2025.1364.603 116 12/30/2025
2025.1364.600 113 12/30/2025
2025.1364.398 112 12/30/2025
2025.1363.45 113 12/29/2025
2025.1363.44 110 12/29/2025
2025.1362.728 115 12/28/2025
2025.1358.1371 197 12/24/2025
2025.1356.172 190 12/22/2025
2025.1356.142 194 12/22/2025
2025.1356.104 191 12/22/2025
2025.1355.597 177 12/21/2025
2025.1355.582 176 12/21/2025
2025.1355.546 145 12/21/2025
2025.1355.525 135 12/21/2025
2025.1355.514 138 12/21/2025
2025.1355.507 141 12/21/2025
2025.1355.499 146 12/21/2025
2025.1355.401 143 12/21/2025
2025.1355.392 143 12/21/2025
2025.1355.381 157 12/21/2025
2025.1355.371 140 12/21/2025
2025.1355.334 132 12/21/2025
2025.1355.308 136 12/21/2025
2025.1355.183 142 12/21/2025
2025.1354.739 155 12/20/2025
2025.1354.731 157 12/20/2025
2025.1354.39 193 12/20/2025
2025.1353.662 260 12/19/2025
2025.1353.593 267 12/19/2025
2025.1353.526 269 12/19/2025
2025.1353.502 259 12/19/2025
2025.1353.489 259 12/19/2025
2025.1353.400 269 12/19/2025
2025.1353.367 274 12/19/2025
2025.1352.1431 299 12/18/2025
2025.1352.1424 286 12/18/2025
2025.1351.813 304 12/17/2025
2025.1351.758 291 12/17/2025
2025.1351.440 294 12/17/2025
2025.1350.557 296 12/16/2025
2025.1350.516 294 12/16/2025
2025.1350.182 291 12/16/2025
2025.1350.147 296 12/16/2025
2025.1349.1160 281 12/15/2025
2025.1346.566 154 12/12/2025
2025.1345.778 450 12/11/2025
2025.1345.725 449 12/11/2025
2025.1339.426 214 12/5/2025
2025.1338.774 233 12/4/2025
2025.1338.756 225 12/4/2025
2025.1338.613 224 12/4/2025
2025.1338.582 225 12/4/2025
2025.1338.547 228 12/4/2025
2025.1338.381 228 12/4/2025
2025.1338.290 224 12/4/2025
2025.1335.333 517 12/1/2025
2025.1335.278 505 12/1/2025
2025.1335.262 515 12/1/2025
2025.1333.376 140 11/29/2025
2025.1332.339 194 11/28/2025
2025.1328.632 218 11/24/2025
2025.1328.624 215 11/24/2025
2025.1328.41 216 11/24/2025
2025.1327.977 223 11/23/2025
2025.1327.893 193 11/23/2025
2025.1324.9 429 11/20/2025
2025.1324.1 436 11/20/2025
2025.1320.233 259 11/16/2025
2025.1320.190 174 11/16/2025
2025.1320.178 169 11/16/2025
2025.1320.84 171 11/16/2025
2025.1320.61 173 11/16/2025
2025.1319.659 195 11/15/2025
2025.1319.291 218 11/15/2025
2025.1318.1000 262 11/14/2025
2025.1317.1416 312 11/13/2025
2025.1302.173 229 10/29/2025
2025.1302.116 229 10/29/2025
2025.1302.93 221 10/29/2025
2025.1301.273 215 10/28/2025
2025.1289.355 214 10/16/2025
2025.1288.1067 213 10/15/2025
2025.1288.939 206 10/15/2025
2025.1288.731 214 10/15/2025
2025.1288.643 218 10/15/2025
2025.1288.584 219 10/15/2025
2025.1287.261 221 10/14/2025
2025.1287.213 211 10/14/2025
2025.1286.369 226 10/13/2025
2025.1276.372 200 10/3/2025
2025.1253.415 223 9/10/2025
2025.1251.740 209 9/8/2025
2025.1249.408 164 9/6/2025
2025.1245.159 222 9/2/2025
2025.1241.1004 252 8/29/2025
2025.1241.337 265 8/29/2025
2025.1241.335 271 8/29/2025
2025.1239.82 261 8/27/2025
2025.1236.697 253 8/24/2025
2025.1235.897 149 8/23/2025
2025.1234.740 176 8/22/2025
2025.1234.625 182 8/22/2025
2025.1234.484 187 8/22/2025
2025.1234.426 192 8/22/2025
2025.1234.329 192 8/22/2025
2025.1234.304 198 8/22/2025
2025.1234.279 200 8/22/2025
2025.1234.210 206 8/22/2025
2025.1234.185 199 8/22/2025
2025.1234.108 216 8/22/2025
2025.1234.70 215 8/22/2025
2025.1233.957 221 8/21/2025
2025.1233.933 214 8/21/2025
2025.1233.915 212 8/21/2025
2025.1233.885 207 8/21/2025
2025.1233.764 217 8/21/2025
2025.1233.694 212 8/21/2025
2025.1233.677 224 8/21/2025
2025.1233.212 216 8/21/2025
2025.1233.74 210 8/21/2025
2025.1233.72 213 8/21/2025
2025.1233.28 207 8/21/2025
2025.1232.155 221 8/20/2025
2025.1232.154 210 8/20/2025
2025.1232.104 212 8/20/2025
2025.1232.102 213 8/20/2025
2025.1231.1026 223 8/19/2025
2025.1231.941 228 8/19/2025
2025.1231.499 215 8/19/2025
2025.1231.484 212 8/19/2025
2025.1231.297 219 8/19/2025
2025.1230.859 216 8/18/2025
2025.1228.220 150 8/16/2025
2025.1227.934 180 8/15/2025
2025.1227.904 174 8/15/2025
2025.1227.852 174 8/15/2025
2025.1227.816 172 8/15/2025
2025.1227.77 213 8/15/2025
2025.1226.857 222 8/14/2025
2025.1226.472 224 8/14/2025
2025.1226.163 229 8/14/2025
2025.1222.583 225 8/10/2025
2025.1222.562 226 8/10/2025
2025.1222.437 222 8/10/2025
2025.1222.425 202 8/10/2025
2025.1220.271 283 8/8/2025
2025.1220.225 278 8/8/2025
2025.1220.80 286 8/8/2025
2025.1219.568 301 8/7/2025
2025.1219.546 297 8/7/2025
2025.1219.514 297 8/7/2025
2025.1219.513 297 8/7/2025
2025.1219.511 285 8/7/2025
2025.1219.421 296 8/7/2025
2025.1219.377 298 8/7/2025
2025.1219.362 305 8/7/2025
2025.1219.361 295 8/7/2025
2025.1218.1281 301 8/6/2025
2025.1218.1266 304 8/6/2025
2025.1218.1264 299 8/6/2025
2025.1218.1255 300 8/6/2025
2025.1218.1223 303 8/6/2025
2025.1218.1180 291 8/6/2025
2025.1218.1166 293 8/6/2025
2025.1218.1154 289 8/6/2025
2025.1218.1088 305 8/6/2025
2025.1218.595 294 8/6/2025
2025.1218.554 302 8/6/2025
2025.1218.544 297 8/6/2025
2025.1218.523 299 8/6/2025
2025.1218.499 301 8/6/2025
2025.1218.427 303 8/6/2025
2025.1218.415 303 8/6/2025
2025.1218.187 303 8/6/2025
2025.1218.174 305 8/6/2025
2025.1218.148 301 8/6/2025
2025.1218.123 294 8/6/2025
2025.1217.886 297 8/5/2025
2025.1217.560 301 8/5/2025
2025.1217.516 297 8/5/2025
2025.1217.512 302 8/5/2025
2025.1217.503 304 8/5/2025
2025.1216.1103 263 8/4/2025
2025.1216.1025 260 8/4/2025
2025.1216.978 239 8/4/2025
2025.1216.897 238 8/4/2025
2025.1216.893 239 8/4/2025
2025.1216.884 239 8/4/2025
2025.1216.873 241 8/4/2025
2025.1216.824 233 8/4/2025
2025.1216.767 242 8/4/2025
2025.1216.745 242 8/4/2025
2025.1216.411 211 8/4/2025
2025.1216.396 215 8/4/2025
2025.1216.386 210 8/4/2025
2025.1216.357 214 8/4/2025
2025.1216.347 204 8/4/2025
2025.1216.334 215 8/4/2025
2025.1216.319 209 8/4/2025
2025.1215.930 180 8/3/2025
2025.1215.928 183 8/3/2025
2025.1215.911 184 8/3/2025
2025.1215.892 181 8/3/2025
2025.1215.842 182 8/3/2025
2025.1209.1064 176 7/28/2025
2025.1209.1061 172 7/28/2025
2025.1209.1047 179 7/28/2025
2025.1209.1038 177 7/28/2025
2025.1209.1034 180 7/28/2025
2025.1209.948 182 7/28/2025
2025.1209.881 191 7/28/2025
2025.1209.773 192 7/28/2025
2025.1209.765 189 7/28/2025
2025.1209.758 188 7/28/2025
2025.1209.727 205 7/28/2025
2025.1209.658 185 7/28/2025
2025.1209.300 189 7/28/2025
2025.1209.284 186 7/28/2025
2025.1209.264 184 7/28/2025
2025.1209.227 187 7/28/2025
2025.1209.198 182 7/28/2025
2025.1209.179 197 7/28/2025
2025.1208.826 207 7/27/2025
2025.1208.627 167 7/27/2025
2025.1208.617 166 7/27/2025
2025.1208.570 164 7/27/2025
2025.1208.568 172 7/27/2025
2025.1208.566 174 7/27/2025
2025.1206.491 505 7/25/2025
2025.1206.247 535 7/25/2025
2025.1205.230 548 7/24/2025
2025.1203.826 610 7/22/2025
2025.1202.906 558 7/21/2025
2025.1202.904 560 7/21/2025
2025.1202.283 486 7/21/2025
2025.1201.470 314 7/20/2025
2025.1199.287 201 7/18/2025
2025.1198.1048 218 7/17/2025
2025.1198.682 216 7/17/2025
2025.1198.638 213 7/17/2025
2025.1198.574 217 7/17/2025
2025.1198.187 225 7/17/2025
2025.1191.922 225 7/10/2025
2025.1191.235 229 7/10/2025
2025.1190.175 219 7/9/2025
2025.1189.851 219 7/8/2025
2025.1189.841 230 7/8/2025
2025.1187.587 226 7/6/2025
2025.1183.853 231 7/2/2025
2025.1181.644 212 6/30/2025
2025.1175.340 234 6/24/2025
2025.1174.62 226 6/23/2025
2025.1171.352 223 6/20/2025
2025.1169.413 220 6/18/2025
2025.1166.1191 220 6/15/2025
2025.1166.1178 226 6/15/2025
2025.1166.1177 215 6/15/2025
2025.1159.445 200 6/8/2025
2025.1159.364 193 6/8/2025
2025.1159.324 201 6/8/2025
2025.1155.438 225 6/4/2025
2025.1141.1424 227 5/21/2025
2025.1140.383 231 5/20/2025
2025.1140.377 227 5/20/2025
2025.1139.983 226 5/19/2025
2025.1139.952 224 5/19/2025
2025.1139.941 235 5/19/2025
2025.1139.855 233 5/19/2025
2025.1139.850 224 5/19/2025
2025.1139.837 222 5/19/2025
2025.1139.811 229 5/19/2025
2025.1139.806 232 5/19/2025
2025.1139.796 232 5/19/2025
2025.1139.729 230 5/19/2025
2025.1139.719 227 5/19/2025
2025.1139.706 230 5/19/2025
2025.1139.694 231 5/19/2025
2025.1139.679 232 5/19/2025
2025.1139.662 224 5/19/2025
2025.1139.638 208 5/19/2025
2025.1139.628 206 5/19/2025
2025.1139.626 212 5/19/2025
2025.1139.619 210 5/19/2025
2025.1139.605 208 5/19/2025
2025.1139.600 214 5/19/2025
2025.1139.583 223 5/19/2025
2025.1139.573 206 5/19/2025
2025.1139.564 211 5/19/2025
2025.1139.552 207 5/19/2025
2025.1139.543 214 5/19/2025
2025.1138.909 214 5/18/2025
2025.1136.150 283 5/16/2025
2025.1135.267 284 5/15/2025
2025.1135.143 289 5/15/2025
2025.1133.453 289 5/13/2025
2025.1133.351 294 5/13/2025
2025.1133.349 299 5/13/2025
2025.1133.347 299 5/13/2025
2025.1130.236 142 5/10/2025
2025.1129.831 172 5/9/2025
2025.1129.346 1,166 5/9/2025
2023.1176.407 268 6/25/2023
2023.1176.396 231 6/25/2023
2023.1176.363 244 6/25/2023
2023.1176.360 275 6/25/2023
2023.1175.638 237 6/24/2023
2023.1170.907 229 6/19/2023
2023.1170.900 233 6/19/2023
2023.1167.562 231 6/16/2023
2023.1167.556 241 6/16/2023
2023.1167.496 257 6/16/2023
2023.1166.1008 254 6/15/2023
2023.1166.938 230 6/15/2023
2023.1166.713 252 6/15/2023
2023.1166.699 233 6/15/2023
2023.1165.1065 243 6/14/2023
2023.1165.888 242 6/14/2023
2023.1165.878 242 6/14/2023
2023.1165.861 240 6/14/2023
2023.1165.828 253 6/14/2023
2023.1165.686 251 6/14/2023
2023.1165.653 238 6/14/2023
2023.377.1003 324 5/31/2023
2023.377.909 264 5/31/2023
2023.377.558 263 5/31/2023
2023.365.1417 306 5/30/2023
2023.365.1350 255 5/30/2023
2023.365.1327 243 5/30/2023
2023.365.1306 266 5/30/2023
2023.365.1198 270 5/30/2023
2023.365.1046 254 5/30/2023
2023.365.710 250 5/30/2023
2023.365.703 260 5/30/2023
2023.365.336 260 5/30/2023
2023.174.636 252 6/14/2023
2023.174.616 235 6/14/2023
2023.174.442 244 6/14/2023
2023.162.1243 240 6/13/2023
2023.162.1225 249 6/13/2023
2023.162.1023 234 6/13/2023
2023.162.948 237 6/13/2023
2023.162.865 234 6/13/2023
2023.162.770 269 6/13/2023
2023.162.734 251 6/13/2023
2023.162.701 248 6/13/2023
2023.162.470 260 6/13/2023
2023.162.418 242 6/13/2023
2023.150.1142 240 6/12/2023
2023.150.1121 247 6/12/2023
2023.150.1095 247 6/12/2023
2023.150.1081 230 6/12/2023
2023.150.1066 245 6/12/2023
2023.150.999 239 6/12/2023
2023.150.916 267 6/12/2023
2023.150.865 242 6/12/2023
2023.150.831 249 6/12/2023
2023.150.774 243 6/12/2023
2023.150.613 234 6/12/2023
2023.150.558 252 6/12/2023
2023.150.456 266 6/12/2023
2023.150.450 269 6/12/2023
2023.150.220 267 6/12/2023
2023.150.179 267 6/12/2023
2023.150.167 283 6/12/2023
2023.138.864 252 6/11/2023
2023.138.837 248 6/11/2023
2023.138.363 255 6/11/2023
2023.138.224 291 6/11/2023
2023.138.213 234 6/11/2023
2023.126.1167 261 6/11/2023
2023.126.1148 254 6/10/2023
2023.126.838 266 6/10/2023
2023.126.794 263 6/10/2023
2023.126.745 262 6/10/2023
2023.126.714 273 6/10/2023
2023.126.662 270 6/10/2023
2023.114.544 250 6/9/2023
2023.114.351 254 6/9/2023
2023.90.1030 263 6/7/2023
2023.90.1009 243 6/7/2023
2023.54.1152 242 6/4/2023
2023.54.419 273 6/4/2023
2023.54.198 247 6/4/2023
2023.54.60 234 6/4/2023
2023.54.48 263 6/4/2023
2023.42.745 252 6/3/2023
2023.30.1191 249 6/2/2023
2023.30.1172 265 6/2/2023
2023.30.1163 254 6/2/2023
2023.30.1147 254 6/2/2023
2023.30.1136 284 6/2/2023
2023.30.765 272 6/2/2023
2023.30.761 254 6/2/2023
2023.30.747 270 6/2/2023
2023.30.734 257 6/2/2023