Sync shared code from runtime (#23430)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2020-06-27 08:09:39 -07:00 committed by GitHub
parent a07449123a
commit 5a22c49ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 9 deletions

View File

@ -14,13 +14,13 @@ namespace System.Net.Quic.Implementations.Mock
internal sealed class MockConnection : QuicConnectionProvider internal sealed class MockConnection : QuicConnectionProvider
{ {
private readonly bool _isClient; private readonly bool _isClient;
private bool _disposed = false; private bool _disposed;
private IPEndPoint? _remoteEndPoint; private IPEndPoint? _remoteEndPoint;
private IPEndPoint? _localEndPoint; private IPEndPoint? _localEndPoint;
private object _syncObject = new object(); private object _syncObject = new object();
private Socket? _socket = null; private Socket? _socket;
private IPEndPoint? _peerListenEndPoint = null; private IPEndPoint? _peerListenEndPoint;
private TcpListener? _inboundListener = null; private TcpListener? _inboundListener;
private long _nextOutboundBidirectionalStream; private long _nextOutboundBidirectionalStream;
private long _nextOutboundUnidirectionalStream; private long _nextOutboundUnidirectionalStream;

View File

@ -13,7 +13,7 @@ namespace System.Net.Quic.Implementations.Mock
{ {
internal sealed class MockListener : QuicListenerProvider internal sealed class MockListener : QuicListenerProvider
{ {
private bool _disposed = false; private bool _disposed;
private SslServerAuthenticationOptions? _sslOptions; private SslServerAuthenticationOptions? _sslOptions;
private IPEndPoint _listenEndPoint; private IPEndPoint _listenEndPoint;
private TcpListener _tcpListener; private TcpListener _tcpListener;

View File

@ -13,14 +13,14 @@ namespace System.Net.Quic.Implementations.Mock
{ {
internal sealed class MockStream : QuicStreamProvider internal sealed class MockStream : QuicStreamProvider
{ {
private bool _disposed = false; private bool _disposed;
private readonly long _streamId; private readonly long _streamId;
private bool _canRead; private bool _canRead;
private bool _canWrite; private bool _canWrite;
private MockConnection? _connection; private MockConnection? _connection;
private Socket? _socket = null; private Socket? _socket;
// Constructor for outbound streams // Constructor for outbound streams
internal MockStream(MockConnection connection, long streamId, bool bidirectional) internal MockStream(MockConnection connection, long streamId, bool bidirectional)

View File

@ -6,7 +6,7 @@ namespace System.Net.Quic.Implementations.MsQuic.Internal
{ {
internal sealed class MsQuicSession : IDisposable internal sealed class MsQuicSession : IDisposable
{ {
private bool _disposed = false; private bool _disposed;
private IntPtr _nativeObjPtr; private IntPtr _nativeObjPtr;
private bool _opened; private bool _opened;

View File

@ -61,7 +61,7 @@ namespace System.Net.Quic.Implementations.MsQuic
// Used by the class to indicate that the stream is writable. // Used by the class to indicate that the stream is writable.
private readonly bool _canWrite; private readonly bool _canWrite;
private volatile bool _disposed = false; private volatile bool _disposed;
private List<QuicBuffer> _receiveQuicBuffers = new List<QuicBuffer>(); private List<QuicBuffer> _receiveQuicBuffers = new List<QuicBuffer>();