Skip to content

Commit 10421d1

Browse files
committed
improve docs
1 parent c28ed5c commit 10421d1

15 files changed

+46
-3
lines changed

src/Polly.Core/CircuitBreaker/OnCircuitClosedArguments.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace Polly.CircuitBreaker;
55
/// <summary>
66
/// Arguments used by <see cref="CircuitBreakerStrategyOptions{TResult}.OnClosed"/> event.
77
/// </summary>
8+
/// <remarks>
9+
/// Always use constructor when creating this struct, otherwise we do not guarantee the binary compatibility.
10+
/// </remarks>
811
public readonly struct OnCircuitClosedArguments
912
{
1013
/// <summary>

src/Polly.Core/CircuitBreaker/OnCircuitHalfOpenedArguments.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace Polly.CircuitBreaker;
55
/// <summary>
66
/// Arguments used by <see cref="CircuitBreakerStrategyOptions{TResult}.OnHalfOpened"/> event.
77
/// </summary>
8+
/// <remarks>
9+
/// Always use constructor when creating this struct, otherwise we do not guarantee the binary compatibility.
10+
/// </remarks>
811
public readonly struct OnCircuitHalfOpenedArguments
912
{
1013
/// <summary>

src/Polly.Core/CircuitBreaker/OnCircuitOpenedArguments.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace Polly.CircuitBreaker;
55
/// <summary>
66
/// Arguments used by <see cref="CircuitBreakerStrategyOptions{TResult}.OnOpened"/> event.
77
/// </summary>
8+
/// <remarks>
9+
/// Always use constructor when creating this struct, otherwise we do not guarantee the binary compatibility.
10+
/// </remarks>
811
public readonly struct OnCircuitOpenedArguments
912
{
1013
/// <summary>

src/Polly.Core/Fallback/OnFallbackArguments.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ namespace Polly.Fallback;
33
/// <summary>
44
/// Represents arguments used in fallback handling scenarios.
55
/// </summary>
6+
/// <remarks>
7+
/// Always use constructor when creating this struct, otherwise we do not guarantee the binary compatibility.
8+
/// </remarks>
69
public readonly struct OnFallbackArguments
710
{
811
}

src/Polly.Core/Hedging/OnHedgingArguments.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace Polly.Hedging;
55
/// <summary>
66
/// Represents arguments used by the on-hedging event.
77
/// </summary>
8+
/// <remarks>
9+
/// Always use constructor when creating this struct, otherwise we do not guarantee the binary compatibility.
10+
/// </remarks>
811
public readonly struct OnHedgingArguments
912
{
1013
/// <summary>

src/Polly.Core/Retry/OnRetryArguments.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace Polly.Retry;
55
/// <summary>
66
/// Represents the arguments used by <see cref="RetryStrategyOptions{TResult}.OnRetry"/> for handling the retry event.
77
/// </summary>
8+
/// <remarks>
9+
/// Always use constructor when creating this struct, otherwise we do not guarantee the binary compatibility.
10+
/// </remarks>
811
public readonly struct OnRetryArguments
912
{
1013
/// <summary>

src/Polly.Core/Telemetry/ExecutionAttemptArguments.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
/// <summary>
66
/// Arguments that encapsulate the execution attempt for retries or hedging.
77
/// </summary>
8+
/// <remarks>
9+
/// Always use constructor when creating this struct, otherwise we do not guarantee the binary compatibility.
10+
/// </remarks>
811
public readonly struct ExecutionAttemptArguments
912
{
1013
/// <summary>

src/Polly.Core/Telemetry/PipelineExecutedArguments.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
/// <summary>
66
/// Arguments that indicate the pipeline execution started.
77
/// </summary>
8+
/// <remarks>
9+
/// Always use constructor when creating this struct, otherwise we do not guarantee the binary compatibility.
10+
/// </remarks>
811
public readonly struct PipelineExecutedArguments
912
{
1013
/// <summary>

src/Polly.Core/Telemetry/PipelineExecutingArguments.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
/// <summary>
44
/// Arguments that indicate the pipeline execution started.
55
/// </summary>
6+
/// <remarks>
7+
/// Always use constructor when creating this struct, otherwise we do not guarantee the binary compatibility.
8+
/// </remarks>
69
public readonly struct PipelineExecutingArguments
710
{
811
}

src/Polly.Core/Telemetry/TelemetryEventArguments.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
/// </summary>
88
/// <typeparam name="TResult">The type of result.</typeparam>
99
/// <typeparam name="TArgs">The arguments associated with the resilience event.</typeparam>
10+
/// <remarks>
11+
/// Always use constructor when creating this struct, otherwise we do not guarantee the binary compatibility.
12+
/// </remarks>
1013
public readonly struct TelemetryEventArguments<TResult, TArgs>
1114
{
1215
/// <summary>

0 commit comments

Comments
 (0)