Progress doesn't need to be hindered

This commit is contained in:
Matt Nadareski
2025-09-22 21:04:17 -04:00
parent 4db1c57830
commit c12d3fbe15

View File

@@ -6,8 +6,9 @@
using System;
using System.Threading;
using System.Diagnostics;
using BinaryObjectScanner;
namespace BinaryObjectScanner
namespace ProtectionScan
{
/// <summary>
/// Provides an IProgress{T} that invokes callbacks for each reported progress value.
@@ -21,7 +22,7 @@ namespace BinaryObjectScanner
/// at the time of construction, the callbacks will be invoked on the ThreadPool.
/// </remarks>
/// <see href="https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Progress.cs"/>
public class Progress<T> : IProgress<T> where T : EventArgs
internal class Progress<T> : IProgress<T> where T : EventArgs
{
/// <summary>The synchronization context captured upon construction. This will never be null.</summary>
private readonly SynchronizationContext? _synchronizationContext;