2 writes to _connectionOpenedStatus
System.Net.Security (2)
System\Net\Security\SslStream.IO.cs (2)
80
if (Interlocked.Exchange(ref
_connectionOpenedStatus
, ConnectionStatus.Disposed) == ConnectionStatus.HandshakeCompleted)
152
bool connectionOpen = Interlocked.CompareExchange(ref
_connectionOpenedStatus
, ConnectionStatus.HandshakeCompleted, ConnectionStatus.NoHandshake) == ConnectionStatus.NoHandshake;