-
-
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
26 changed files
with
89 additions
and
76 deletions.
There are no files selected for viewing
8 changes: 6 additions & 2 deletions
8
ApiReview/API.Polly.Core/NoDocs/Polly.CircuitBreaker/CircuitBreakerPredicateArguments.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,9 +1,13 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.InteropServices; | ||
using System.Runtime.CompilerServices; | ||
using Polly.Utils; | ||
|
||
namespace Polly.CircuitBreaker; | ||
|
||
public readonly struct CircuitBreakerPredicateArguments | ||
public readonly struct CircuitBreakerPredicateArguments<TResult> | ||
{ | ||
public Outcome<TResult> Outcome { get; } | ||
public ResilienceContext Context { get; } | ||
public CircuitBreakerPredicateArguments(ResilienceContext context, Outcome<TResult> outcome); | ||
} |
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: 5 additions & 2 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,11 +1,14 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.CompilerServices; | ||
using Polly.Utils; | ||
|
||
namespace Polly.CircuitBreaker; | ||
|
||
public readonly struct OnCircuitClosedArguments | ||
public readonly struct OnCircuitClosedArguments<TResult> | ||
{ | ||
public Outcome<TResult> Outcome { get; } | ||
public ResilienceContext Context { get; } | ||
public bool IsManual { get; } | ||
public OnCircuitClosedArguments(bool isManual); | ||
public OnCircuitClosedArguments(ResilienceContext context, Outcome<TResult> outcome, bool isManual); | ||
} |
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: 6 additions & 2 deletions
8
ApiReview/API.Polly.Core/NoDocs/Polly.Fallback/FallbackPredicateArguments.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,9 +1,13 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.InteropServices; | ||
using System.Runtime.CompilerServices; | ||
using Polly.Utils; | ||
|
||
namespace Polly.Fallback; | ||
|
||
public readonly struct FallbackPredicateArguments | ||
public readonly struct FallbackPredicateArguments<TResult> | ||
{ | ||
public Outcome<TResult> Outcome { get; } | ||
public ResilienceContext Context { get; } | ||
public FallbackPredicateArguments(ResilienceContext context, Outcome<TResult> outcome); | ||
} |
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
9 changes: 6 additions & 3 deletions
9
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,10 +1,13 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.InteropServices; | ||
using System.Runtime.CompilerServices; | ||
using Polly.Utils; | ||
|
||
namespace Polly.Fallback; | ||
|
||
[StructLayout(LayoutKind.Sequential, Size = 1)] | ||
public readonly struct OnFallbackArguments | ||
public readonly struct OnFallbackArguments<TResult> | ||
{ | ||
public Outcome<TResult> Outcome { get; } | ||
public ResilienceContext Context { get; } | ||
public OnFallbackArguments(ResilienceContext context, Outcome<TResult> outcome); | ||
} |
8 changes: 6 additions & 2 deletions
8
ApiReview/API.Polly.Core/NoDocs/Polly.Hedging/HedgingPredicateArguments.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,9 +1,13 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.InteropServices; | ||
using System.Runtime.CompilerServices; | ||
using Polly.Utils; | ||
|
||
namespace Polly.Hedging; | ||
|
||
public readonly struct HedgingPredicateArguments | ||
public readonly struct HedgingPredicateArguments<TResult> | ||
{ | ||
public Outcome<TResult> Outcome { get; } | ||
public ResilienceContext Context { get; } | ||
public HedgingPredicateArguments(ResilienceContext context, Outcome<TResult> outcome); | ||
} |
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
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: 5 additions & 2 deletions
7
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,11 +1,14 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.CompilerServices; | ||
using Polly.Utils; | ||
|
||
namespace Polly.Retry; | ||
|
||
public readonly struct RetryPredicateArguments | ||
public readonly struct RetryPredicateArguments<TResult> | ||
{ | ||
public Outcome<TResult> Outcome { get; } | ||
public ResilienceContext Context { get; } | ||
public int AttemptNumber { get; } | ||
public RetryPredicateArguments(int attemptNumber); | ||
public RetryPredicateArguments(ResilienceContext context, Outcome<TResult> outcome, int attemptNumber); | ||
} |
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
3 changes: 2 additions & 1 deletion
3
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,11 +1,12 @@ | ||
// Assembly 'Polly.Core' | ||
|
||
using System.Runtime.CompilerServices; | ||
using Polly.Utils; | ||
|
||
namespace Polly.Telemetry; | ||
|
||
public sealed class ResilienceStrategyTelemetry | ||
{ | ||
public void Report<TArgs>(ResilienceEvent resilienceEvent, ResilienceContext context, TArgs args); | ||
public void Report<TArgs, TResult>(ResilienceEvent resilienceEvent, OutcomeArguments<TResult, TArgs> args); | ||
public void Report<TArgs, TResult>(ResilienceEvent resilienceEvent, ResilienceContext context, Outcome<TResult> outcome, TArgs args); | ||
} |
This file was deleted.
Oops, something went wrong.
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
11 changes: 11 additions & 0 deletions
11
ApiReview/API.Polly.RateLimiting/NoDocs/Polly.RateLimiting/RateLimiterArguments.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,11 @@ | ||
// Assembly 'Polly.RateLimiting' | ||
|
||
using System.Runtime.CompilerServices; | ||
|
||
namespace Polly.RateLimiting; | ||
|
||
public readonly struct RateLimiterArguments | ||
{ | ||
public ResilienceContext Context { get; } | ||
public RateLimiterArguments(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
16 changes: 0 additions & 16 deletions
16
ApiReview/API.Polly.RateLimiting/NoDocs/Polly.RateLimiting/ResilienceRateLimiter.cs
This file was deleted.
Oops, something went wrong.
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