From cba1f42dce47d4eeb5a1fcabaeea3178a65f1f17 Mon Sep 17 00:00:00 2001 From: ZLoo Date: Fri, 19 Jul 2024 01:43:04 +0300 Subject: [PATCH] Fix warning CA1710 --- src/Polly/Context.cs | 2 ++ src/Polly/Polly.csproj | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Polly/Context.cs b/src/Polly/Context.cs index 0eff0ca8f45..0a17675cee0 100644 --- a/src/Polly/Context.cs +++ b/src/Polly/Context.cs @@ -4,7 +4,9 @@ namespace Polly; /// Context that carries with a single execution through a Policy. Commonly-used properties are directly on the class. Backed by a dictionary of string key / object value pairs, to which user-defined values may be added. /// Do not re-use an instance of across more than one call through .Execute(...) or .ExecuteAsync(...). /// +#pragma warning disable CA1710 // Identifiers should have correct suffix public partial class Context +#pragma warning restore CA1710 { internal static Context None() => []; diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 2356c4e2404..8a9582dc7d2 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;CA1716;CA1724;CA1805;CA1816;CA2211 $(NoWarn);S2223;S3215;S4039 $(NoWarn);RS0037;