Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
martintmk committed Jul 4, 2023
1 parent 0d831b2 commit b936db2
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public static class PollyServiceCollectionExtensions
/// <param name="configure">An action that configures the resilience strategy.</param>
/// <returns>The updated <see cref="IServiceCollection"/> with the registered resilience strategy.</returns>
/// <exception cref="InvalidOperationException">Thrown if the resilience strategy builder with the provided key has already been added to the registry.</exception>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
/// <remarks>
/// You can retrieve the registered strategy by resolving the <see cref="ResilienceStrategyProvider{TKey}"/> class from the dependency injection container.
/// <para>
/// This call enables the telemetry for the registered resilience strategy.
/// </para>
/// </remarks>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
public static IServiceCollection AddResilienceStrategy<TKey, TResult>(
this IServiceCollection services,
TKey key,
Expand All @@ -54,13 +54,13 @@ public static IServiceCollection AddResilienceStrategy<TKey, TResult>(
/// <param name="configure">An action that configures the resilience strategy.</param>
/// <returns>The updated <see cref="IServiceCollection"/> with the registered resilience strategy.</returns>
/// <exception cref="InvalidOperationException">Thrown if the resilience strategy builder with the provided key has already been added to the registry.</exception>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
/// <remarks>
/// You can retrieve the registered strategy by resolving the <see cref="ResilienceStrategyProvider{TKey}"/> class from the dependency injection container.
/// <para>
/// This call enables the telemetry for the registered resilience strategy.
/// </para>
/// </remarks>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
public static IServiceCollection AddResilienceStrategy<TKey, TResult>(
this IServiceCollection services,
TKey key,
Expand Down Expand Up @@ -97,13 +97,13 @@ public static IServiceCollection AddResilienceStrategy<TKey, TResult>(
/// <param name="configure">An action that configures the resilience strategy.</param>
/// <returns>The updated <see cref="IServiceCollection"/> with the registered resilience strategy.</returns>
/// <exception cref="InvalidOperationException">Thrown if the resilience strategy builder with the provided key has already been added to the registry.</exception>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
/// <remarks>
/// You can retrieve the registered strategy by resolving the <see cref="ResilienceStrategyProvider{TKey}"/> class from the dependency injection container.
/// <para>
/// This call enables the telemetry for the registered resilience strategy.
/// </para>
/// </remarks>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
public static IServiceCollection AddResilienceStrategy<TKey>(
this IServiceCollection services,
TKey key,
Expand All @@ -125,13 +125,13 @@ public static IServiceCollection AddResilienceStrategy<TKey>(
/// <param name="configure">An action that configures the resilience strategy.</param>
/// <returns>The updated <see cref="IServiceCollection"/> with the registered resilience strategy.</returns>
/// <exception cref="InvalidOperationException">Thrown if the resilience strategy builder with the provided key has already been added to the registry.</exception>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
/// <remarks>
/// You can retrieve the registered strategy by resolving the <see cref="ResilienceStrategyProvider{TKey}"/> class from the dependency injection container.
/// <para>
/// This call enables the telemetry for the registered resilience strategy.
/// </para>
/// </remarks>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> or <paramref name="configure"/> is <see langword="null"/>.</exception>
public static IServiceCollection AddResilienceStrategy<TKey>(
this IServiceCollection services,
TKey key,
Expand Down Expand Up @@ -165,15 +165,14 @@ public static IServiceCollection AddResilienceStrategy<TKey>(
/// <typeparam name="TKey">The type of the key used to identify the resilience strategy.</typeparam>
/// <param name="services">The <see cref="IServiceCollection"/> to add the resilience strategy to.</param>
/// <returns>The updated <see cref="IServiceCollection"/> with additional services added.</returns>
/// <exception cref="InvalidOperationException">Thrown if the resilience strategy builder with the provided key has already been added to the registry.</exception>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> is <see langword="null"/>.</exception>
/// <remarks>
/// You can retrieve the strategy registry by resolving the <see cref="ResilienceStrategyProvider{TKey}"/>
/// or <see cref="ResilienceStrategyRegistry{TKey}"/> class from the dependency injection container.
/// <para>
/// This call enables telemetry for all resilience strategies created using <see cref="ResilienceStrategyRegistry{TKey}"/>.
/// </para>
/// </remarks>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="services"/> is <see langword="null"/>.</exception>
public static IServiceCollection AddResilienceStrategy<TKey>(this IServiceCollection services)
where TKey : notnull
{
Expand Down

0 comments on commit b936db2

Please sign in to comment.