From 13aa5733bf2805654dfc3a93f5cea20ae2a339e7 Mon Sep 17 00:00:00 2001 From: panoskj Date: Sun, 24 Sep 2023 22:48:53 +0300 Subject: [PATCH] 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