Skip to content

Commit 857afe6

Browse files
committed
Improve diff between versions of TdsParserStateObjectNative
1 parent c21d451 commit 857afe6

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,17 @@ private enum NativeProtocols
4343
internal SNIPacket _sniAsyncAttnPacket = null; // Packet to use to send Attn
4444
private readonly WritePacketCache _writePacketCache = new WritePacketCache(); // Store write packets that are ready to be re-used
4545

46-
public TdsParserStateObjectNative(TdsParser parser) : base(parser) { }
47-
4846
private GCHandle _gcHandle; // keeps this object alive until we're closed.
4947

50-
private Dictionary<IntPtr, SNIPacket> _pendingWritePackets = new Dictionary<IntPtr, SNIPacket>(); // Stores write packets that have been sent to SNI, but have not yet finished writing (i.e. we are waiting for SNI's callback)
48+
private readonly Dictionary<IntPtr, SNIPacket> _pendingWritePackets = new Dictionary<IntPtr, SNIPacket>(); // Stores write packets that have been sent to SNI, but have not yet finished writing (i.e. we are waiting for SNI's callback)
49+
50+
internal TdsParserStateObjectNative(TdsParser parser, TdsParserStateObject physicalConnection, bool async)
51+
: base(parser, physicalConnection, async)
52+
{
53+
}
5154

52-
internal TdsParserStateObjectNative(TdsParser parser, TdsParserStateObject physicalConnection, bool async) :
53-
base(parser, physicalConnection, async)
55+
public TdsParserStateObjectNative(TdsParser parser)
56+
: base(parser)
5457
{
5558
}
5659

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal TdsParserStateObjectNative(TdsParser parser, TdsParserStateObject physi
2020
{
2121
}
2222

23-
internal TdsParserStateObjectNative(TdsParser parser)
23+
public TdsParserStateObjectNative(TdsParser parser)
2424
: base(parser)
2525
{
2626
}

0 commit comments

Comments
 (0)