Skip to content

Commit

Permalink
PR by feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Zombach committed Jul 18, 2024
1 parent 396438a commit f25e762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Polly/Caching/ITtlStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ public interface ITtlStrategy : ITtlStrategy<object>
/// Defines a strategy for providing time-to-live durations for cacheable results.
/// </summary>
/// <typeparam name="TResult">The type of the result.</typeparam>
public interface ITtlStrategy<in TResult>
#pragma warning disable S3246
public interface ITtlStrategy<TResult>
#pragma warning restore S3246
{
/// <summary>
/// Gets a TTL for a cacheable item, given the current execution context.
Expand Down
4 changes: 3 additions & 1 deletion src/Polly/CircuitBreaker/ICircuitBreakerPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public interface ICircuitBreakerPolicy : IsPolicy
/// Defines properties and methods common to all circuit-breaker policies generic-typed for executions returning results of type <typeparamref name="TResult"/>.
/// </summary>
/// <typeparam name="TResult">The type of the result.</typeparam>
public interface ICircuitBreakerPolicy<out TResult> : ICircuitBreakerPolicy
#pragma warning disable S3246
public interface ICircuitBreakerPolicy<TResult> : ICircuitBreakerPolicy
#pragma warning restore S3246
{
/// <summary>
/// Gets the last result returned from a user delegate which the circuit-breaker handled.
Expand Down

0 comments on commit f25e762

Please sign in to comment.