Skip to content

Commit e563323

Browse files
committed
Post-merge cleanup
1 parent a3dbb35 commit e563323

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,7 @@ public void Open(SqlConnectionOverrides overrides)
14161416
try
14171417
{
14181418
statistics = SqlStatistics.StartTimer(Statistics);
1419+
14191420
if (!(IsProviderRetriable ? TryOpenWithRetry(null, overrides) : TryOpen(null, overrides)))
14201421
{
14211422
throw ADP.InternalError(ADP.InternalErrorCode.SynchronousConnectReturnedPending);

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,7 @@ public override void Close()
13501350
_statistics._closeTimestamp = ADP.TimerCurrent();
13511351
}
13521352
}
1353+
// @TODO: CER Exception Handling was removed here (see GH#3581)
13531354
catch (Exception ex)
13541355
{
13551356
e = ex;

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/Diagnostics/SqlDiagnosticListener.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#if NET
1010
using System.Reflection;
1111
using System.Runtime.Loader;
12-
#else
13-
using System.Runtime.ConstrainedExecution;
1412
#endif
1513

1614
namespace Microsoft.Data.SqlClient.Diagnostics
@@ -487,7 +485,6 @@ public void WriteTransactionRollbackError(
487485
private void SqlDiagnosticListener_UnloadingAssemblyLoadContext(AssemblyLoadContext obj) =>
488486
Dispose();
489487
#else
490-
[PrePrepareMethod]
491488
private void SqlDiagnosticListener_UnloadingAppDomain(object sender, EventArgs e) =>
492489
Dispose();
493490
#endif

0 commit comments

Comments
 (0)