Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net9.0'))">
<MicrosoftExtensionsVersion>9.0.0</MicrosoftExtensionsVersion>
<MicrosoftExtensionsTimeProviderVersion>9.0.0</MicrosoftExtensionsTimeProviderVersion>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="coverlet.msbuild" Version="6.0.4" />
Expand Down
3 changes: 2 additions & 1 deletion src/Polly.Core/Utils/DefaultPredicates.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
namespace Polly.Utils;

internal static class DefaultPredicates<TArgs, TResult>
where TArgs : IOutcomeArguments<TResult>
{
public static readonly Func<TArgs, ValueTask<bool>> HandleOutcome = args => args.Outcome.Exception switch
{
OperationCanceledException => PredicateResult.False(),
Exception => PredicateResult.True(),
_ => PredicateResult.False()
_ => PredicateResult.False(),
};
}
1 change: 1 addition & 0 deletions test/Polly.Core.Tests/OutcomeTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Polly.Core.Tests;

public class OutcomeTests
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Polly.Registry;

namespace Polly.Core.Tests.Registry;

public class ResiliencePipelineRegistryOptionsTests
{
[Fact]
Expand Down
1 change: 1 addition & 0 deletions test/Polly.Core.Tests/Simmy/ChaosStrategyOptionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Polly.Utils;

namespace Polly.Core.Tests.Simmy;

public class ChaosStrategyOptionsTests
{
[Fact]
Expand Down
1 change: 1 addition & 0 deletions test/Polly.Core.Tests/Timeout/TimeoutUtilTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Polly.Timeout;

namespace Polly.Core.Tests.Timeout;

public class TimeoutUtilTests
{
public static readonly TheoryData<TimeSpan, bool> ShouldApplyTimeoutData = new()
Expand Down