You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Polly.Core/CircuitBreaker/CircuitBreakerCompositeStrategyBuilderExtensions.cs
+19-24Lines changed: 19 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,17 @@ public static class CircuitBreakerCompositeStrategyBuilderExtensions
24
24
/// </remarks>
25
25
/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
26
26
/// <exception cref="ValidationException">Thrown when <paramref name="options"/> are invalid.</exception>
27
+
[UnconditionalSuppressMessage(
28
+
"Trimming",
29
+
"IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code",
@@ -47,39 +52,29 @@ public static CompositeStrategyBuilder AddCircuitBreaker(this CompositeStrategyB
47
52
/// </remarks>
48
53
/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
49
54
/// <exception cref="ValidationException">Thrown when <paramref name="options"/> are invalid.</exception>
"IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code",
/// <param name="factory">The factory that creates a resilience strategy.</param>
78
+
/// <param name="options">The options associated with the strategy. If none are provided the default instance of <see cref="ResilienceStrategyOptions"/> is created.</param>
79
+
/// <returns>The same builder instance.</returns>
80
+
/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/>, <paramref name="factory"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
81
+
/// <exception cref="InvalidOperationException">Thrown when this builder was already used to create a strategy. The builder cannot be modified after it has been used.</exception>
82
+
/// <exception cref="ValidationException">Thrown when <paramref name="options"/> is invalid.</exception>
/// <param name="factory">The factory that creates a resilience strategy.</param>
102
+
/// <param name="options">The options associated with the strategy. If none are provided the default instance of <see cref="ResilienceStrategyOptions"/> is created.</param>
103
+
/// <returns>The same builder instance.</returns>
104
+
/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/>, <paramref name="factory"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
105
+
/// <exception cref="InvalidOperationException">Thrown when this builder was already used to create a strategy. The builder cannot be modified after it has been used.</exception>
106
+
/// <exception cref="ValidationException">Thrown when <paramref name="options"/> is invalid.</exception>
Copy file name to clipboardExpand all lines: src/Polly.Core/Fallback/FallbackCompositeStrategyBuilderExtensions.cs
+23-22Lines changed: 23 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,18 @@ public static class FallbackCompositeStrategyBuilderExtensions
18
18
/// <returns>The builder instance with the fallback strategy added.</returns>
19
19
/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
20
20
/// <exception cref="ValidationException">Thrown when <paramref name="options"/> are invalid.</exception>
"IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code",
@@ -35,34 +40,30 @@ public static CompositeStrategyBuilder<TResult> AddFallback<TResult>(this Compos
35
40
/// <returns>The builder instance with the fallback strategy added.</returns>
36
41
/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
37
42
/// <exception cref="ValidationException">Thrown when <paramref name="options"/> are invalid.</exception>
43
+
[UnconditionalSuppressMessage(
44
+
"Trimming",
45
+
"IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code",
"IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code",
Copy file name to clipboardExpand all lines: src/Polly.Core/Hedging/HedgingCompositeStrategyBuilderExtensions.cs
+30-28Lines changed: 30 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,18 @@ public static class HedgingCompositeStrategyBuilderExtensions
19
19
/// <returns>The builder instance with the hedging strategy added.</returns>
20
20
/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
21
21
/// <exception cref="ValidationException">Thrown when <paramref name="options"/> are invalid.</exception>
"IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code",
@@ -36,39 +41,36 @@ public static CompositeStrategyBuilder<TResult> AddHedging<TResult>(this Composi
36
41
/// <returns>The builder instance with the hedging strategy added.</returns>
37
42
/// <exception cref="ArgumentNullException">Thrown when <paramref name="builder"/> or <paramref name="options"/> is <see langword="null"/>.</exception>
38
43
/// <exception cref="ValidationException">Thrown when <paramref name="options"/> are invalid.</exception>
44
+
[UnconditionalSuppressMessage(
45
+
"Trimming",
46
+
"IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code",
"IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code",
0 commit comments