diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 2356c4e2404..b220c06d916 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -7,7 +7,7 @@ Library 70 true - $(NoWarn);CA1010;CA1031;CA1051;CA1062;CA1063;CA1064;CA1710;CA1716;CA1724;CA1805;CA1816;CA2211 + $(NoWarn);CA1010;CA1031;CA1051;CA1062;CA1063;CA1064;CA1710;CA1724;CA1805;CA1816;CA2211 $(NoWarn);S2223;S3215;S4039 $(NoWarn);RS0037; diff --git a/src/Polly/Registry/IReadOnlyPolicyRegistry.cs b/src/Polly/Registry/IReadOnlyPolicyRegistry.cs index b9a551f2b22..18c3cec820a 100644 --- a/src/Polly/Registry/IReadOnlyPolicyRegistry.cs +++ b/src/Polly/Registry/IReadOnlyPolicyRegistry.cs @@ -16,6 +16,7 @@ public interface IReadOnlyPolicyRegistry : IEnumerableThe value associated with the specified key. IsPolicy this[TKey key] { get; } +#pragma warning disable CA1716 // Identifiers should not match keywords /// /// Gets the policy stored under the provided key, casting to . /// @@ -25,6 +26,7 @@ public interface IReadOnlyPolicyRegistry : IEnumerableThrown when is . TPolicy Get(TKey key) where TPolicy : IsPolicy; +#pragma warning restore CA1716 /// /// Gets the policy stored under the provided key, casting to .