Redpoint.ProgressMonitor 2025.1276.372

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