diff --git a/src/Polly.Core/CircuitBreaker/CircuitBreakerPredicateArguments.cs b/src/Polly.Core/CircuitBreaker/CircuitBreakerPredicateArguments.cs
index d09ca8d8692..4c72c2fa44e 100644
--- a/src/Polly.Core/CircuitBreaker/CircuitBreakerPredicateArguments.cs
+++ b/src/Polly.Core/CircuitBreaker/CircuitBreakerPredicateArguments.cs
@@ -6,4 +6,6 @@ namespace Polly.CircuitBreaker;
///
/// Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.
///
-public readonly record struct CircuitBreakerPredicateArguments();
+public readonly struct CircuitBreakerPredicateArguments
+{
+}
diff --git a/src/Polly.Core/CircuitBreaker/CircuitBreakerResilienceStrategy.cs b/src/Polly.Core/CircuitBreaker/CircuitBreakerResilienceStrategy.cs
index 90327f7d725..90eebbba01a 100644
--- a/src/Polly.Core/CircuitBreaker/CircuitBreakerResilienceStrategy.cs
+++ b/src/Polly.Core/CircuitBreaker/CircuitBreakerResilienceStrategy.cs
@@ -32,7 +32,7 @@ protected override async ValueTask> ExecuteCallbackAsync(Func
outcome = await ExecuteCallbackSafeAsync(callback, context, state).ConfigureAwait(context.ContinueOnCapturedContext);
- var args = new OutcomeArguments(context, outcome, new CircuitBreakerPredicateArguments());
+ var args = new OutcomeArguments(context, outcome, default);
if (await _handler(args).ConfigureAwait(context.ContinueOnCapturedContext))
{
await _controller.OnActionFailureAsync(outcome, context).ConfigureAwait(context.ContinueOnCapturedContext);
diff --git a/src/Polly.Core/CircuitBreaker/Controller/CircuitStateController.cs b/src/Polly.Core/CircuitBreaker/Controller/CircuitStateController.cs
index 1c595c3929f..f0ac469682b 100644
--- a/src/Polly.Core/CircuitBreaker/Controller/CircuitStateController.cs
+++ b/src/Polly.Core/CircuitBreaker/Controller/CircuitStateController.cs
@@ -128,7 +128,7 @@ public ValueTask CloseCircuitAsync(ResilienceContext context)
if (_circuitState == CircuitState.Open && PermitHalfOpenCircuitTest_NeedsLock())
{
_circuitState = CircuitState.HalfOpen;
- _telemetry.Report(new(ResilienceEventSeverity.Warning, CircuitBreakerConstants.OnHalfOpenEvent), context, new OnCircuitHalfOpenedArguments());
+ _telemetry.Report(new(ResilienceEventSeverity.Warning, CircuitBreakerConstants.OnHalfOpenEvent), context, new OnCircuitHalfOpenedArguments(context));
isHalfOpen = true;
}
@@ -142,7 +142,7 @@ public ValueTask CloseCircuitAsync(ResilienceContext context)
if (isHalfOpen && _onHalfOpen is not null)
{
- _executor.ScheduleTask(() => _onHalfOpen(new OnCircuitHalfOpenedArguments()).AsTask(), context, out task);
+ _executor.ScheduleTask(() => _onHalfOpen(new OnCircuitHalfOpenedArguments(context)).AsTask(), context, out task);
}
}
diff --git a/src/Polly.Core/CircuitBreaker/OnCircuitClosedArguments.cs b/src/Polly.Core/CircuitBreaker/OnCircuitClosedArguments.cs
index 5cb632c3dfe..42d33d9c1ac 100644
--- a/src/Polly.Core/CircuitBreaker/OnCircuitClosedArguments.cs
+++ b/src/Polly.Core/CircuitBreaker/OnCircuitClosedArguments.cs
@@ -3,5 +3,16 @@ namespace Polly.CircuitBreaker;
///
/// Arguments used by event.
///
-/// Indicates whether the circuit was closed manually by using .
-public record OnCircuitClosedArguments(bool IsManual);
+public sealed class OnCircuitClosedArguments
+{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Indicates whether the circuit was closed manually by using .
+ public OnCircuitClosedArguments(bool isManual) => IsManual = isManual;
+
+ ///
+ /// Gets a value indicating whether the circuit was closed manually by using .
+ ///
+ public bool IsManual { get; }
+}
diff --git a/src/Polly.Core/CircuitBreaker/OnCircuitHalfOpenedArguments.cs b/src/Polly.Core/CircuitBreaker/OnCircuitHalfOpenedArguments.cs
index 97444487f39..1dbc56a1e5d 100644
--- a/src/Polly.Core/CircuitBreaker/OnCircuitHalfOpenedArguments.cs
+++ b/src/Polly.Core/CircuitBreaker/OnCircuitHalfOpenedArguments.cs
@@ -3,4 +3,16 @@ namespace Polly.CircuitBreaker;
///
/// Arguments used by event.
///
-public record OnCircuitHalfOpenedArguments();
+public sealed class OnCircuitHalfOpenedArguments
+{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The context instance.
+ public OnCircuitHalfOpenedArguments(ResilienceContext context) => Context = context;
+
+ ///
+ /// Gets the context associated with the execution of a user-provided callback.
+ ///
+ public ResilienceContext Context { get; }
+}
diff --git a/src/Polly.Core/CircuitBreaker/OnCircuitOpenedArguments.cs b/src/Polly.Core/CircuitBreaker/OnCircuitOpenedArguments.cs
index 261f18e53cb..3f4b7f89efe 100644
--- a/src/Polly.Core/CircuitBreaker/OnCircuitOpenedArguments.cs
+++ b/src/Polly.Core/CircuitBreaker/OnCircuitOpenedArguments.cs
@@ -3,6 +3,26 @@ namespace Polly.CircuitBreaker;
///
/// Arguments used by event.
///
-/// The duration of break.
-/// Indicates whether the circuit was opened manually by using .
-public record OnCircuitOpenedArguments(TimeSpan BreakDuration, bool IsManual);
+public sealed class OnCircuitOpenedArguments
+{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The duration of break.
+ /// Indicates whether the circuit was opened manually by using .
+ public OnCircuitOpenedArguments(TimeSpan breakDuration, bool isManual)
+ {
+ BreakDuration = breakDuration;
+ IsManual = isManual;
+ }
+
+ ///
+ /// Gets the duration of break.
+ ///
+ public TimeSpan BreakDuration { get; }
+
+ ///
+ /// Gets a value indicating whether the circuit was opened manually by using .
+ ///
+ public bool IsManual { get; }
+}
diff --git a/src/Polly.Core/Fallback/FallbackPredicateArguments.cs b/src/Polly.Core/Fallback/FallbackPredicateArguments.cs
index fb575d72ee9..1a7218e4b81 100644
--- a/src/Polly.Core/Fallback/FallbackPredicateArguments.cs
+++ b/src/Polly.Core/Fallback/FallbackPredicateArguments.cs
@@ -6,4 +6,6 @@ namespace Polly.Fallback;
///
/// Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.
///
-public readonly record struct FallbackPredicateArguments();
+public readonly struct FallbackPredicateArguments
+{
+}
diff --git a/src/Polly.Core/Fallback/FallbackResilienceStrategy.cs b/src/Polly.Core/Fallback/FallbackResilienceStrategy.cs
index f0939511d0d..fa8a298c05d 100644
--- a/src/Polly.Core/Fallback/FallbackResilienceStrategy.cs
+++ b/src/Polly.Core/Fallback/FallbackResilienceStrategy.cs
@@ -21,7 +21,7 @@ public FallbackResilienceStrategy(FallbackHandler handler, Func> ExecuteCallbackAsync(Func>> callback, ResilienceContext context, TState state)
{
var outcome = await ExecuteCallbackSafeAsync(callback, context, state).ConfigureAwait(context.ContinueOnCapturedContext);
- var handleFallbackArgs = new OutcomeArguments(context, outcome, new FallbackPredicateArguments());
+ var handleFallbackArgs = new OutcomeArguments(context, outcome, default);
if (!await _handler.ShouldHandle(handleFallbackArgs).ConfigureAwait(context.ContinueOnCapturedContext))
{
return outcome;
diff --git a/src/Polly.Core/Fallback/OnFallbackArguments.cs b/src/Polly.Core/Fallback/OnFallbackArguments.cs
index 628aaa85718..c3452616a0c 100644
--- a/src/Polly.Core/Fallback/OnFallbackArguments.cs
+++ b/src/Polly.Core/Fallback/OnFallbackArguments.cs
@@ -3,4 +3,6 @@ namespace Polly.Fallback;
///
/// Represents arguments used in fallback handling scenarios.
///
-public record OnFallbackArguments();
+public sealed class OnFallbackArguments
+{
+}
diff --git a/src/Polly.Core/Hedging/Controller/TaskExecution.cs b/src/Polly.Core/Hedging/Controller/TaskExecution.cs
index 9b44e76bf5e..d91f32c6060 100644
--- a/src/Polly.Core/Hedging/Controller/TaskExecution.cs
+++ b/src/Polly.Core/Hedging/Controller/TaskExecution.cs
@@ -224,7 +224,7 @@ private async Task ExecutePrimaryActionAsync(Func outcome)
{
- var args = new OutcomeArguments(Context, outcome, new HedgingPredicateArguments());
+ var args = new OutcomeArguments(Context, outcome, default);
Outcome = outcome.AsOutcome();
IsHandled = await _handler.ShouldHandle(args).ConfigureAwait(Context.ContinueOnCapturedContext);
TelemetryUtil.ReportExecutionAttempt(_telemetry, Context, outcome, Attempt, ExecutionTime, IsHandled);
diff --git a/src/Polly.Core/Hedging/HedgingActionGeneratorArguments.cs b/src/Polly.Core/Hedging/HedgingActionGeneratorArguments.cs
index de2626fd0bb..9de0b577210 100644
--- a/src/Polly.Core/Hedging/HedgingActionGeneratorArguments.cs
+++ b/src/Polly.Core/Hedging/HedgingActionGeneratorArguments.cs
@@ -1,20 +1,57 @@
namespace Polly.Hedging;
+#pragma warning disable CA1815 // Override equals and operator equals on value types
+
///
/// Represents arguments used in the hedging resilience strategy.
///
/// The type of the result.
-/// The primary resilience context.
-///
-/// The context that will be passed to action generated by .
-/// This context is cloned from .
-/// The zero-based hedging attempt number.
-/// The callback passed to hedging strategy.
///
/// Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.
///
-public readonly record struct HedgingActionGeneratorArguments(
- ResilienceContext PrimaryContext,
- ResilienceContext ActionContext,
- int Attempt,
- Func>> Callback);
+public readonly struct HedgingActionGeneratorArguments
+{
+ ///
+ /// Initializes a new instance of the struct.
+ ///
+ /// The primary resilience context.
+ ///
+ /// The context that will be passed to action generated by .
+ /// .
+ /// The zero-based hedging attempt number.
+ /// The callback passed to hedging strategy.
+ public HedgingActionGeneratorArguments(
+ ResilienceContext primaryContext,
+ ResilienceContext actionContext,
+ int attempt,
+ Func>> callback)
+ {
+ PrimaryContext = primaryContext;
+ ActionContext = actionContext;
+ Attempt = attempt;
+ Callback = callback;
+ }
+
+ ///
+ /// Gets the primary resilience context.
+ ///
+ public ResilienceContext PrimaryContext { get; }
+
+ ///
+ /// Gets the context that will be passed to action generated by .
+ ///
+ ///
+ /// This context is cloned from .
+ ///
+ public ResilienceContext ActionContext { get; }
+
+ ///
+ /// Gets the zero-based hedging attempt number.
+ ///
+ public int Attempt { get; }
+
+ ///
+ /// Gets the callback passed to hedging strategy.
+ ///
+ public Func>> Callback { get; }
+}
diff --git a/src/Polly.Core/Hedging/HedgingDelayArguments.cs b/src/Polly.Core/Hedging/HedgingDelayArguments.cs
index a30006ac1bc..9f0fa9f201c 100644
--- a/src/Polly.Core/Hedging/HedgingDelayArguments.cs
+++ b/src/Polly.Core/Hedging/HedgingDelayArguments.cs
@@ -1,11 +1,33 @@
namespace Polly.Hedging;
+#pragma warning disable CA1815 // Override equals and operator equals on value types
+
///
/// Arguments used by hedging delay generator.
///
-/// The context associated with the execution of a user-provided callback.
-/// The zero-based hedging attempt number.
///
/// Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.
///
-public readonly record struct HedgingDelayArguments(ResilienceContext Context, int Attempt);
+public readonly struct HedgingDelayArguments
+{
+ ///
+ /// Initializes a new instance of the struct.
+ ///
+ /// The context associated with the execution of a user-provided callback.
+ /// The zero-based hedging attempt number.
+ public HedgingDelayArguments(ResilienceContext context, int attempt)
+ {
+ Context = context;
+ Attempt = attempt;
+ }
+
+ ///
+ /// Gets the context associated with the execution of a user-provided callback.
+ ///
+ public ResilienceContext Context { get; }
+
+ ///
+ /// Gets the zero-based hedging attempt number.
+ ///
+ public int Attempt { get; }
+}
diff --git a/src/Polly.Core/Hedging/HedgingPredicateArguments.cs b/src/Polly.Core/Hedging/HedgingPredicateArguments.cs
index 1a423192fc9..a3bf7a46105 100644
--- a/src/Polly.Core/Hedging/HedgingPredicateArguments.cs
+++ b/src/Polly.Core/Hedging/HedgingPredicateArguments.cs
@@ -6,4 +6,6 @@ namespace Polly.Hedging;
///
/// Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.
///
-public readonly record struct HedgingPredicateArguments();
+public readonly struct HedgingPredicateArguments
+{
+}
diff --git a/src/Polly.Core/Hedging/HedgingResilienceStrategy.cs b/src/Polly.Core/Hedging/HedgingResilienceStrategy.cs
index 1034031ae64..930c12fc0ff 100644
--- a/src/Polly.Core/Hedging/HedgingResilienceStrategy.cs
+++ b/src/Polly.Core/Hedging/HedgingResilienceStrategy.cs
@@ -99,7 +99,7 @@ private async ValueTask> ExecuteCoreAsync(
await HandleOnHedgingAsync(
context,
Outcome.FromResult(default),
- new OnHedgingArguments(attempt, HasOutcome: false, ExecutionTime: delay)).ConfigureAwait(context.ContinueOnCapturedContext);
+ new OnHedgingArguments(attempt, hasOutcome: false, executionTime: delay)).ConfigureAwait(context.ContinueOnCapturedContext);
continue;
}
@@ -115,7 +115,7 @@ await HandleOnHedgingAsync(
await HandleOnHedgingAsync(
context,
outcome,
- new OnHedgingArguments(attempt, HasOutcome: true, executionTime)).ConfigureAwait(context.ContinueOnCapturedContext);
+ new OnHedgingArguments(attempt, hasOutcome: true, executionTime)).ConfigureAwait(context.ContinueOnCapturedContext);
}
}
diff --git a/src/Polly.Core/Hedging/OnHedgingArguments.cs b/src/Polly.Core/Hedging/OnHedgingArguments.cs
index 4c963bd4985..1ea70e674e1 100644
--- a/src/Polly.Core/Hedging/OnHedgingArguments.cs
+++ b/src/Polly.Core/Hedging/OnHedgingArguments.cs
@@ -3,13 +3,36 @@ namespace Polly.Hedging;
///
/// Represents arguments used by the on-hedging event.
///
-/// The zero-based hedging attempt number.
-///
-/// Determines whether the outcome is available before loading the next hedged task.
-/// No outcome indicates that the previous action did not finish within the hedging delay.
-///
-///
-/// The execution time of hedging attempt or the hedging delay
-/// in case the attempt was not finished in time.
-///
-public record OnHedgingArguments(int Attempt, bool HasOutcome, TimeSpan ExecutionTime);
+public sealed class OnHedgingArguments
+{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The zero-based hedging attempt number.
+ /// Indicates whether outcome is available.
+ /// The execution time of hedging attempt or the hedging delay in case the attempt was not finished in time.
+ public OnHedgingArguments(int attempt, bool hasOutcome, TimeSpan executionTime)
+ {
+ Attempt = attempt;
+ HasOutcome = hasOutcome;
+ ExecutionTime = executionTime;
+ }
+
+ ///
+ /// Gets the zero-based hedging attempt number.
+ ///
+ public int Attempt { get; }
+
+ ///
+ /// Gets a value indicating whether the outcome is available before loading the next hedged task.
+ ///
+ ///
+ /// No outcome indicates that the previous action did not finish within the hedging delay.
+ ///
+ public bool HasOutcome { get; }
+
+ ///
+ /// Gets the execution time of hedging attempt or the hedging delay in case the attempt was not finished in time.
+ ///
+ public TimeSpan ExecutionTime { get; }
+}
diff --git a/src/Polly.Core/PublicAPI.Unshipped.txt b/src/Polly.Core/PublicAPI.Unshipped.txt
index 19dd6d0c5b3..60c134d212d 100644
--- a/src/Polly.Core/PublicAPI.Unshipped.txt
+++ b/src/Polly.Core/PublicAPI.Unshipped.txt
@@ -68,16 +68,14 @@ Polly.CircuitBreaker.IsolatedCircuitException.IsolatedCircuitException(string! m
Polly.CircuitBreaker.IsolatedCircuitException.IsolatedCircuitException(string! message, System.Exception! innerException) -> void
Polly.CircuitBreaker.OnCircuitClosedArguments
Polly.CircuitBreaker.OnCircuitClosedArguments.IsManual.get -> bool
-Polly.CircuitBreaker.OnCircuitClosedArguments.IsManual.init -> void
-Polly.CircuitBreaker.OnCircuitClosedArguments.OnCircuitClosedArguments(bool IsManual) -> void
+Polly.CircuitBreaker.OnCircuitClosedArguments.OnCircuitClosedArguments(bool isManual) -> void
Polly.CircuitBreaker.OnCircuitHalfOpenedArguments
-Polly.CircuitBreaker.OnCircuitHalfOpenedArguments.OnCircuitHalfOpenedArguments() -> void
+Polly.CircuitBreaker.OnCircuitHalfOpenedArguments.Context.get -> Polly.ResilienceContext!
+Polly.CircuitBreaker.OnCircuitHalfOpenedArguments.OnCircuitHalfOpenedArguments(Polly.ResilienceContext! context) -> void
Polly.CircuitBreaker.OnCircuitOpenedArguments
Polly.CircuitBreaker.OnCircuitOpenedArguments.BreakDuration.get -> System.TimeSpan
-Polly.CircuitBreaker.OnCircuitOpenedArguments.BreakDuration.init -> void
Polly.CircuitBreaker.OnCircuitOpenedArguments.IsManual.get -> bool
-Polly.CircuitBreaker.OnCircuitOpenedArguments.IsManual.init -> void
-Polly.CircuitBreaker.OnCircuitOpenedArguments.OnCircuitOpenedArguments(System.TimeSpan BreakDuration, bool IsManual) -> void
+Polly.CircuitBreaker.OnCircuitOpenedArguments.OnCircuitOpenedArguments(System.TimeSpan breakDuration, bool isManual) -> void
Polly.CircuitBreaker.SimpleCircuitBreakerStrategyOptions
Polly.CircuitBreaker.SimpleCircuitBreakerStrategyOptions.SimpleCircuitBreakerStrategyOptions() -> void
Polly.CircuitBreaker.SimpleCircuitBreakerStrategyOptions
@@ -104,22 +102,16 @@ Polly.Fallback.OnFallbackArguments.OnFallbackArguments() -> void
Polly.FallbackResilienceStrategyBuilderExtensions
Polly.Hedging.HedgingActionGeneratorArguments
Polly.Hedging.HedgingActionGeneratorArguments.ActionContext.get -> Polly.ResilienceContext!
-Polly.Hedging.HedgingActionGeneratorArguments.ActionContext.init -> void
Polly.Hedging.HedgingActionGeneratorArguments.Attempt.get -> int
-Polly.Hedging.HedgingActionGeneratorArguments.Attempt.init -> void
Polly.Hedging.HedgingActionGeneratorArguments.Callback.get -> System.Func>>!
-Polly.Hedging.HedgingActionGeneratorArguments.Callback.init -> void
Polly.Hedging.HedgingActionGeneratorArguments.HedgingActionGeneratorArguments() -> void
-Polly.Hedging.HedgingActionGeneratorArguments.HedgingActionGeneratorArguments(Polly.ResilienceContext! PrimaryContext, Polly.ResilienceContext! ActionContext, int Attempt, System.Func>>! Callback) -> void
+Polly.Hedging.HedgingActionGeneratorArguments.HedgingActionGeneratorArguments(Polly.ResilienceContext! primaryContext, Polly.ResilienceContext! actionContext, int attempt, System.Func>>! callback) -> void
Polly.Hedging.HedgingActionGeneratorArguments.PrimaryContext.get -> Polly.ResilienceContext!
-Polly.Hedging.HedgingActionGeneratorArguments.PrimaryContext.init -> void
Polly.Hedging.HedgingDelayArguments
Polly.Hedging.HedgingDelayArguments.Attempt.get -> int
-Polly.Hedging.HedgingDelayArguments.Attempt.init -> void
Polly.Hedging.HedgingDelayArguments.Context.get -> Polly.ResilienceContext!
-Polly.Hedging.HedgingDelayArguments.Context.init -> void
Polly.Hedging.HedgingDelayArguments.HedgingDelayArguments() -> void
-Polly.Hedging.HedgingDelayArguments.HedgingDelayArguments(Polly.ResilienceContext! Context, int Attempt) -> void
+Polly.Hedging.HedgingDelayArguments.HedgingDelayArguments(Polly.ResilienceContext! context, int attempt) -> void
Polly.Hedging.HedgingPredicateArguments
Polly.Hedging.HedgingPredicateArguments.HedgingPredicateArguments() -> void
Polly.Hedging.HedgingStrategyOptions
@@ -138,12 +130,9 @@ Polly.Hedging.HedgingStrategyOptions.ShouldHandle.get -> System.Func.ShouldHandle.set -> void
Polly.Hedging.OnHedgingArguments
Polly.Hedging.OnHedgingArguments.Attempt.get -> int
-Polly.Hedging.OnHedgingArguments.Attempt.init -> void
Polly.Hedging.OnHedgingArguments.ExecutionTime.get -> System.TimeSpan
-Polly.Hedging.OnHedgingArguments.ExecutionTime.init -> void
Polly.Hedging.OnHedgingArguments.HasOutcome.get -> bool
-Polly.Hedging.OnHedgingArguments.HasOutcome.init -> void
-Polly.Hedging.OnHedgingArguments.OnHedgingArguments(int Attempt, bool HasOutcome, System.TimeSpan ExecutionTime) -> void
+Polly.Hedging.OnHedgingArguments.OnHedgingArguments(int attempt, bool hasOutcome, System.TimeSpan executionTime) -> void
Polly.HedgingResilienceStrategyBuilderExtensions
Polly.NullResilienceStrategy
Polly.NullResilienceStrategy
@@ -307,12 +296,9 @@ Polly.ResilienceValidationContext.PrimaryMessage.get -> string!
Polly.ResilienceValidationContext.ResilienceValidationContext(object! instance, string! primaryMessage) -> void
Polly.Retry.OnRetryArguments
Polly.Retry.OnRetryArguments.Attempt.get -> int
-Polly.Retry.OnRetryArguments.Attempt.init -> void
Polly.Retry.OnRetryArguments.ExecutionTime.get -> System.TimeSpan
-Polly.Retry.OnRetryArguments.ExecutionTime.init -> void
-Polly.Retry.OnRetryArguments.OnRetryArguments(int Attempt, System.TimeSpan RetryDelay, System.TimeSpan ExecutionTime) -> void
+Polly.Retry.OnRetryArguments.OnRetryArguments(int attempt, System.TimeSpan retryDelay, System.TimeSpan executionTime) -> void
Polly.Retry.OnRetryArguments.RetryDelay.get -> System.TimeSpan
-Polly.Retry.OnRetryArguments.RetryDelay.init -> void
Polly.Retry.RetryBackoffType
Polly.Retry.RetryBackoffType.Constant = 0 -> Polly.Retry.RetryBackoffType
Polly.Retry.RetryBackoffType.Exponential = 2 -> Polly.Retry.RetryBackoffType
@@ -320,16 +306,13 @@ Polly.Retry.RetryBackoffType.ExponentialWithJitter = 3 -> Polly.Retry.RetryBacko
Polly.Retry.RetryBackoffType.Linear = 1 -> Polly.Retry.RetryBackoffType
Polly.Retry.RetryDelayArguments
Polly.Retry.RetryDelayArguments.Attempt.get -> int
-Polly.Retry.RetryDelayArguments.Attempt.init -> void
Polly.Retry.RetryDelayArguments.DelayHint.get -> System.TimeSpan
-Polly.Retry.RetryDelayArguments.DelayHint.init -> void
Polly.Retry.RetryDelayArguments.RetryDelayArguments() -> void
-Polly.Retry.RetryDelayArguments.RetryDelayArguments(int Attempt, System.TimeSpan DelayHint) -> void
+Polly.Retry.RetryDelayArguments.RetryDelayArguments(int attempt, System.TimeSpan delayHint) -> void
Polly.Retry.RetryPredicateArguments
Polly.Retry.RetryPredicateArguments.Attempt.get -> int
-Polly.Retry.RetryPredicateArguments.Attempt.init -> void
Polly.Retry.RetryPredicateArguments.RetryPredicateArguments() -> void
-Polly.Retry.RetryPredicateArguments.RetryPredicateArguments(int Attempt) -> void
+Polly.Retry.RetryPredicateArguments.RetryPredicateArguments(int attempt) -> void
Polly.Retry.RetryStrategyOptions
Polly.Retry.RetryStrategyOptions.RetryStrategyOptions() -> void
Polly.Retry.RetryStrategyOptions
@@ -354,11 +337,9 @@ Polly.Telemetry.ExecutionAttemptArguments.ExecutionTime.get -> System.TimeSpan
Polly.Telemetry.ExecutionAttemptArguments.Handled.get -> bool
Polly.Telemetry.ResilienceEvent
Polly.Telemetry.ResilienceEvent.EventName.get -> string!
-Polly.Telemetry.ResilienceEvent.EventName.init -> void
Polly.Telemetry.ResilienceEvent.ResilienceEvent() -> void
-Polly.Telemetry.ResilienceEvent.ResilienceEvent(Polly.Telemetry.ResilienceEventSeverity Severity, string! EventName) -> void
+Polly.Telemetry.ResilienceEvent.ResilienceEvent(Polly.Telemetry.ResilienceEventSeverity severity, string! eventName) -> void
Polly.Telemetry.ResilienceEvent.Severity.get -> Polly.Telemetry.ResilienceEventSeverity
-Polly.Telemetry.ResilienceEvent.Severity.init -> void
Polly.Telemetry.ResilienceEventSeverity
Polly.Telemetry.ResilienceEventSeverity.Critical = 5 -> Polly.Telemetry.ResilienceEventSeverity
Polly.Telemetry.ResilienceEventSeverity.Debug = 1 -> Polly.Telemetry.ResilienceEventSeverity
@@ -372,14 +353,10 @@ Polly.Telemetry.ResilienceStrategyTelemetry.Report(Polly.Telemet
Polly.Telemetry.ResilienceStrategyTelemetry.Report(Polly.Telemetry.ResilienceEvent resilienceEvent, Polly.ResilienceContext! context, TArgs args) -> void
Polly.Telemetry.ResilienceTelemetrySource
Polly.Telemetry.ResilienceTelemetrySource.BuilderInstanceName.get -> string?
-Polly.Telemetry.ResilienceTelemetrySource.BuilderInstanceName.init -> void
Polly.Telemetry.ResilienceTelemetrySource.BuilderName.get -> string?
-Polly.Telemetry.ResilienceTelemetrySource.BuilderName.init -> void
Polly.Telemetry.ResilienceTelemetrySource.BuilderProperties.get -> Polly.ResilienceProperties!
-Polly.Telemetry.ResilienceTelemetrySource.BuilderProperties.init -> void
-Polly.Telemetry.ResilienceTelemetrySource.ResilienceTelemetrySource(string? BuilderName, string? BuilderInstanceName, Polly.ResilienceProperties! BuilderProperties, string? StrategyName) -> void
+Polly.Telemetry.ResilienceTelemetrySource.ResilienceTelemetrySource(string? builderName, string? builderInstanceName, Polly.ResilienceProperties! builderProperties, string? strategyName) -> void
Polly.Telemetry.ResilienceTelemetrySource.StrategyName.get -> string?
-Polly.Telemetry.ResilienceTelemetrySource.StrategyName.init -> void
Polly.Telemetry.TelemetryEventArguments
Polly.Telemetry.TelemetryEventArguments.Arguments.get -> object!
Polly.Telemetry.TelemetryEventArguments.Context.get -> Polly.ResilienceContext!
@@ -388,17 +365,13 @@ Polly.Telemetry.TelemetryEventArguments.Outcome.get -> Polly.Outcome