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
/// You can listen for changes only for single options. If you call this method multiple times, the preceding calls are ignored and only the last one wins.
Copy file name to clipboardExpand all lines: src/Polly.Extensions/DependencyInjection/PollyServiceCollectionExtensions.cs
+24-8Lines changed: 24 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,13 @@ public static class PollyServiceCollectionExtensions
25
25
/// <param name="configure">An action that configures the resilience strategy.</param>
26
26
/// <returns>The updated <see cref="IServiceCollection"/> with the registered resilience strategy.</returns>
27
27
/// <exception cref="InvalidOperationException">Thrown if the resilience strategy builder with the provided key has already been added to the registry.</exception>
28
+
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
28
29
/// <remarks>
29
30
/// You can retrieve the registered strategy by resolving the <see cref="ResilienceStrategyProvider{TKey}"/> class from the dependency injection container.
30
31
/// <para>
31
32
/// This call enables the telemetry for the registered resilience strategy.
32
33
/// </para>
33
34
/// </remarks>
34
-
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
@@ -54,13 +54,13 @@ public static IServiceCollection AddResilienceStrategy<TKey, TResult>(
54
54
/// <param name="configure">An action that configures the resilience strategy.</param>
55
55
/// <returns>The updated <see cref="IServiceCollection"/> with the registered resilience strategy.</returns>
56
56
/// <exception cref="InvalidOperationException">Thrown if the resilience strategy builder with the provided key has already been added to the registry.</exception>
57
+
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
57
58
/// <remarks>
58
59
/// You can retrieve the registered strategy by resolving the <see cref="ResilienceStrategyProvider{TKey}"/> class from the dependency injection container.
59
60
/// <para>
60
61
/// This call enables the telemetry for the registered resilience strategy.
61
62
/// </para>
62
63
/// </remarks>
63
-
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
@@ -97,13 +97,13 @@ public static IServiceCollection AddResilienceStrategy<TKey, TResult>(
97
97
/// <param name="configure">An action that configures the resilience strategy.</param>
98
98
/// <returns>The updated <see cref="IServiceCollection"/> with the registered resilience strategy.</returns>
99
99
/// <exception cref="InvalidOperationException">Thrown if the resilience strategy builder with the provided key has already been added to the registry.</exception>
100
+
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
100
101
/// <remarks>
101
102
/// You can retrieve the registered strategy by resolving the <see cref="ResilienceStrategyProvider{TKey}"/> class from the dependency injection container.
102
103
/// <para>
103
104
/// This call enables the telemetry for the registered resilience strategy.
104
105
/// </para>
105
106
/// </remarks>
106
-
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
@@ -125,13 +125,13 @@ public static IServiceCollection AddResilienceStrategy<TKey>(
125
125
/// <param name="configure">An action that configures the resilience strategy.</param>
126
126
/// <returns>The updated <see cref="IServiceCollection"/> with the registered resilience strategy.</returns>
127
127
/// <exception cref="InvalidOperationException">Thrown if the resilience strategy builder with the provided key has already been added to the registry.</exception>
128
+
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
128
129
/// <remarks>
129
130
/// You can retrieve the registered strategy by resolving the <see cref="ResilienceStrategyProvider{TKey}"/> class from the dependency injection container.
130
131
/// <para>
131
132
/// This call enables the telemetry for the registered resilience strategy.
132
133
/// </para>
133
134
/// </remarks>
134
-
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
/// <param name="name">The named options, if any.</param>
21
+
/// <remarks>
22
+
/// You can decide based on the <paramref name="name"/> to listen for changes in global options or named options.
23
+
/// If <paramref name="name"/> is <see langword="null"/> then the global options are listened to.
24
+
/// <para>
25
+
/// You can listen for changes only for single options. If you call this method multiple times, the preceding calls are ignored and only the last one wins.
0 commit comments