Skip to content

Commit 0bf1be2

Browse files
committed
Remove MinAsyncBridge requirement
1 parent 06e5124 commit 0bf1be2

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

BinaryObjectScanner/BinaryObjectScanner.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
</ItemGroup>
7272

7373
<ItemGroup>
74-
<PackageReference Include="MinAsyncBridge" Version="0.12.4" Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`)) OR $(TargetFramework.StartsWith(`net40`))" />
7574
<PackageReference Include="SabreTools.Compression" Version="0.6.3" />
7675
<PackageReference Include="SabreTools.Hashing" Version="1.4.2" />
7776
<PackageReference Include="SabreTools.IO" Version="1.6.3" />

BinaryObjectScanner/Func.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace BinaryObjectScanner
44
{
5-
public delegate TResult Func<in T, out TResult>(T arg);
5+
internal delegate TResult Func<in T, out TResult>(T arg);
66
}
77

88
#endif

BinaryObjectScanner/IProgress.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#if NET20 || NET35 || NET40
2+
3+
// Licensed to the .NET Foundation under one or more agreements.
4+
// The .NET Foundation licenses this file to you under the MIT license.
5+
6+
namespace BinaryObjectScanner
7+
{
8+
/// <summary>Defines a provider for progress updates.</summary>
9+
/// <typeparam name="T">The type of progress update value.</typeparam>
10+
public interface IProgress<in T>
11+
{
12+
/// <summary>Reports a progress update.</summary>
13+
/// <param name="value">The value of the updated progress.</param>
14+
void Report(T value);
15+
}
16+
}
17+
18+
#endif

BinaryObjectScanner/Progress.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
// Licensed to the .NET Foundation under one or more agreements.
44
// The .NET Foundation licenses this file to you under the MIT license.
55

6+
using System;
67
using System.Threading;
78
using System.Diagnostics;
89

9-
namespace System
10+
namespace BinaryObjectScanner
1011
{
1112
/// <summary>
1213
/// Provides an IProgress{T} that invokes callbacks for each reported progress value.

0 commit comments

Comments
 (0)