Remove MinAsyncBridge requirement

This commit is contained in:
Matt Nadareski
2025-07-31 14:21:34 -04:00
parent 06e51247e1
commit 0bf1be23c4
4 changed files with 21 additions and 3 deletions

View File

@@ -71,7 +71,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="MinAsyncBridge" Version="0.12.4" Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`)) OR $(TargetFramework.StartsWith(`net40`))" />
<PackageReference Include="SabreTools.Compression" Version="0.6.3" />
<PackageReference Include="SabreTools.Hashing" Version="1.4.2" />
<PackageReference Include="SabreTools.IO" Version="1.6.3" />

View File

@@ -2,7 +2,7 @@
namespace BinaryObjectScanner
{
public delegate TResult Func<in T, out TResult>(T arg);
internal delegate TResult Func<in T, out TResult>(T arg);
}
#endif

View File

@@ -0,0 +1,18 @@
#if NET20 || NET35 || NET40
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace BinaryObjectScanner
{
/// <summary>Defines a provider for progress updates.</summary>
/// <typeparam name="T">The type of progress update value.</typeparam>
public interface IProgress<in T>
{
/// <summary>Reports a progress update.</summary>
/// <param name="value">The value of the updated progress.</param>
void Report(T value);
}
}
#endif

View File

@@ -3,10 +3,11 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Threading;
using System.Diagnostics;
namespace System
namespace BinaryObjectScanner
{
/// <summary>
/// Provides an IProgress{T} that invokes callbacks for each reported progress value.