From 20eb7b8b4ebad06d9272cf5a661bfcea5e8297cf Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Fri, 17 May 2024 13:03:45 -0700 Subject: [PATCH] Fix Roslyn Analyzer Warning in 4.0 --- .../netcore/src/Microsoft/Data/SqlClient/SNI/SNIHandle.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIHandle.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIHandle.cs index dbee403f41..1eacff0796 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIHandle.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIHandle.cs @@ -17,9 +17,9 @@ internal abstract class SNIHandle /// protected readonly SslProtocols SupportedProtocols = LocalAppContextSwitches.UseSystemDefaultSecureProtocols ? SslProtocols.None : SslProtocols.Tls12 | SslProtocols.Tls11 | SslProtocols.Tls //protected readonly SslProtocols SupportedProtocols = SslProtocols.Tls12 | SslProtocols.Tls11 | SslProtocols.Tls -#pragma warning disable CS0618 // Type or member is obsolete +#pragma warning disable CS0618, CA5397 // Type or member is obsolete | SslProtocols.Ssl2 | SslProtocols.Ssl3 -#pragma warning restore CS0618 // Type or member is obsolete +#pragma warning restore CS0618, CA5397 // Type or member is obsolete ; ///