From 98f818a3afb87a3e1458388579831ed57e4d68da Mon Sep 17 00:00:00 2001 From: panoskj Date: Sun, 24 Sep 2023 22:48:53 +0300 Subject: [PATCH] 6. Optional refactoring that reduces #if directives in merged TdsParserStateObject also benefits merged SqlInternalTransaction. --- .../src/Microsoft/Data/SqlClient/SqlInternalTransaction.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlInternalTransaction.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlInternalTransaction.cs index 114363f5a6..03b144a33e 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlInternalTransaction.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlInternalTransaction.cs @@ -203,9 +203,7 @@ internal void CloseFromConnection() } finally { -#if NETFRAMEWORK TdsParser.ReliabilitySection.Assert("unreliable call to CloseFromConnection"); // you need to setup for a thread abort somewhere before you call this method -#endif if (processFinallyBlock) { // Always ensure we're zombied; 2005 will send an EnvChange that