diff --git a/src/Polly/Caching/ITtlStrategy.cs b/src/Polly/Caching/ITtlStrategy.cs index 6aeaa60ee97..e48f1c8da55 100644 --- a/src/Polly/Caching/ITtlStrategy.cs +++ b/src/Polly/Caching/ITtlStrategy.cs @@ -12,7 +12,9 @@ public interface ITtlStrategy : ITtlStrategy /// Defines a strategy for providing time-to-live durations for cacheable results. /// /// The type of the result. +#pragma warning disable S3246 public interface ITtlStrategy +#pragma warning restore S3246 { /// /// Gets a TTL for a cacheable item, given the current execution context. diff --git a/src/Polly/CircuitBreaker/ICircuitBreakerPolicy.cs b/src/Polly/CircuitBreaker/ICircuitBreakerPolicy.cs index 9cf4b8bd839..7970f99ef49 100644 --- a/src/Polly/CircuitBreaker/ICircuitBreakerPolicy.cs +++ b/src/Polly/CircuitBreaker/ICircuitBreakerPolicy.cs @@ -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 . /// /// The type of the result. +#pragma warning disable S3246 public interface ICircuitBreakerPolicy : ICircuitBreakerPolicy +#pragma warning restore S3246 { /// /// Gets the last result returned from a user delegate which the circuit-breaker handled. diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index a2535c2a0e8..ec5f53f0507 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -8,7 +8,7 @@ 70 true $(NoWarn);CA1010;CA1031;CA1051;CA1062;CA1063;CA1064;CA1710;CA1716;CA1724;CA1805;CA1815;CA1816;CA2211 - $(NoWarn);S2223;S3215;S3246;S4039;S4457 + $(NoWarn);S2223;S3215;S4039;S4457 $(NoWarn);RS0037;