-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
158 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
ApiReview/API.Polly.Core/NoDocs/Polly.CircuitBreaker/OnCircuitClosedArguments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.CircuitBreaker; | ||
|
||
public record OnCircuitClosedArguments(bool IsManual) | ||
public sealed class OnCircuitClosedArguments | ||
{ | ||
[CompilerGenerated] | ||
protected virtual Type EqualityContract { get; } | ||
public bool IsManual { get; } | ||
public OnCircuitClosedArguments(bool isManual); | ||
} |
8 changes: 3 additions & 5 deletions
8
ApiReview/API.Polly.Core/NoDocs/Polly.CircuitBreaker/OnCircuitHalfOpenedArguments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.CircuitBreaker; | ||
|
||
public record OnCircuitHalfOpenedArguments | ||
public sealed class OnCircuitHalfOpenedArguments | ||
{ | ||
[CompilerGenerated] | ||
protected virtual Type EqualityContract { get; } | ||
public OnCircuitHalfOpenedArguments(); | ||
public ResilienceContext Context { get; } | ||
public OnCircuitHalfOpenedArguments(ResilienceContext context); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
ApiReview/API.Polly.Core/NoDocs/Polly.Fallback/OnFallbackArguments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.Fallback; | ||
|
||
public record OnFallbackArguments | ||
public sealed class OnFallbackArguments | ||
{ | ||
[CompilerGenerated] | ||
protected virtual Type EqualityContract { get; } | ||
public OnFallbackArguments(); | ||
} |
10 changes: 9 additions & 1 deletion
10
ApiReview/API.Polly.Core/NoDocs/Polly.Hedging/HedgingActionGeneratorArguments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System; | ||
using System.Runtime.CompilerServices; | ||
using System.Threading.Tasks; | ||
|
||
namespace Polly.Hedging; | ||
|
||
public readonly record struct HedgingActionGeneratorArguments<TResult>(ResilienceContext PrimaryContext, ResilienceContext ActionContext, int Attempt, Func<ResilienceContext, ValueTask<Outcome<TResult>>> Callback); | ||
public readonly struct HedgingActionGeneratorArguments<TResult> | ||
{ | ||
public ResilienceContext PrimaryContext { get; } | ||
public ResilienceContext ActionContext { get; } | ||
public int Attempt { get; } | ||
public Func<ResilienceContext, ValueTask<Outcome<TResult>>> Callback { get; } | ||
public HedgingActionGeneratorArguments(ResilienceContext primaryContext, ResilienceContext actionContext, int attempt, Func<ResilienceContext, ValueTask<Outcome<TResult>>> callback); | ||
} |
9 changes: 8 additions & 1 deletion
9
ApiReview/API.Polly.Core/NoDocs/Polly.Hedging/HedgingDelayArguments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.Hedging; | ||
|
||
public readonly record struct HedgingDelayArguments(ResilienceContext Context, int Attempt); | ||
public readonly struct HedgingDelayArguments | ||
{ | ||
public ResilienceContext Context { get; } | ||
public int Attempt { get; } | ||
public HedgingDelayArguments(ResilienceContext context, int attempt); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
ApiReview/API.Polly.Core/NoDocs/Polly.Retry/RetryDelayArguments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.Retry; | ||
|
||
public readonly record struct RetryDelayArguments(int Attempt, TimeSpan DelayHint); | ||
public readonly struct RetryDelayArguments | ||
{ | ||
public int Attempt { get; } | ||
public TimeSpan DelayHint { get; } | ||
public RetryDelayArguments(int attempt, TimeSpan delayHint); | ||
} |
8 changes: 7 additions & 1 deletion
8
ApiReview/API.Polly.Core/NoDocs/Polly.Retry/RetryPredicateArguments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.Retry; | ||
|
||
public readonly record struct RetryPredicateArguments(int Attempt); | ||
public readonly struct RetryPredicateArguments | ||
{ | ||
public int Attempt { get; } | ||
public RetryPredicateArguments(int attempt); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
ApiReview/API.Polly.Core/NoDocs/Polly.Telemetry/ResilienceEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.Telemetry; | ||
|
||
public readonly record struct ResilienceEvent(ResilienceEventSeverity Severity, string EventName) | ||
public readonly struct ResilienceEvent | ||
{ | ||
public ResilienceEventSeverity Severity { get; } | ||
public string EventName { get; } | ||
public ResilienceEvent(ResilienceEventSeverity severity, string eventName); | ||
public override string ToString(); | ||
} |
5 changes: 5 additions & 0 deletions
5
ApiReview/API.Polly.Core/NoDocs/Polly.Telemetry/ResilienceStrategyTelemetry.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Diagnostics; | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.Telemetry; | ||
|
||
public sealed class ResilienceStrategyTelemetry | ||
{ | ||
public bool IsEnabled { get; } | ||
[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "Reflection is not used when consuming the event.")] | ||
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "Reflection is not used when consuming the event.")] | ||
public void Report<TArgs>(ResilienceEvent resilienceEvent, ResilienceContext context, TArgs args); | ||
[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "Reflection is not used when consuming the event.")] | ||
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "Reflection is not used when consuming the event.")] | ||
public void Report<TArgs, TResult>(ResilienceEvent resilienceEvent, OutcomeArguments<TResult, TArgs> args); | ||
} |
10 changes: 8 additions & 2 deletions
10
ApiReview/API.Polly.Core/NoDocs/Polly.Telemetry/ResilienceTelemetrySource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.Telemetry; | ||
|
||
public sealed record ResilienceTelemetrySource(string? BuilderName, string? BuilderInstanceName, ResilienceProperties BuilderProperties, string? StrategyName, string StrategyType); | ||
public sealed class ResilienceTelemetrySource | ||
{ | ||
public string? BuilderName { get; } | ||
public string? BuilderInstanceName { get; } | ||
public ResilienceProperties BuilderProperties { get; } | ||
public string? StrategyName { get; } | ||
public ResilienceTelemetrySource(string? builderName, string? builderInstanceName, ResilienceProperties builderProperties, string? strategyName); | ||
} |
3 changes: 1 addition & 2 deletions
3
ApiReview/API.Polly.Core/NoDocs/Polly.Telemetry/TelemetryEventArguments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
ApiReview/API.Polly.Core/NoDocs/Polly.Timeout/TimeoutGeneratorArguments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.Timeout; | ||
|
||
public readonly record struct TimeoutGeneratorArguments(ResilienceContext Context); | ||
public readonly struct TimeoutGeneratorArguments | ||
{ | ||
public ResilienceContext Context { get; } | ||
public TimeoutGeneratorArguments(ResilienceContext context); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
ApiReview/API.Polly.Core/NoDocs/Polly/CircuitBreakerResilienceStrategyBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using Polly.CircuitBreaker; | ||
|
||
namespace Polly; | ||
|
1 change: 1 addition & 0 deletions
1
ApiReview/API.Polly.Core/NoDocs/Polly/FallbackResilienceStrategyBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using Polly.Fallback; | ||
|
||
namespace Polly; | ||
|
1 change: 1 addition & 0 deletions
1
ApiReview/API.Polly.Core/NoDocs/Polly/HedgingResilienceStrategyBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using Polly.Hedging; | ||
|
||
namespace Polly; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
ApiReview/API.Polly.Core/NoDocs/Polly/ResilienceContextPool.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.CompilerServices; | ||
using System.Threading; | ||
using Polly.Utils; | ||
|
||
namespace Polly; | ||
|
||
public abstract class ResilienceContextPool | ||
{ | ||
public static ResilienceContextPool Shared { get; } | ||
public ResilienceContext Get(CancellationToken cancellationToken = default(CancellationToken)); | ||
public abstract ResilienceContext Get(string? operationKey, CancellationToken cancellationToken = default(CancellationToken)); | ||
public abstract void Return(ResilienceContext context); | ||
protected ResilienceContextPool(); | ||
} |
Oops, something went wrong.