36 references to NestedState
System.Net.Security (36)
System\Net\Security\SslStream.cs (5)
177private NestedState _nestedWrite; 178private NestedState _nestedRead; 750if (Interlocked.Exchange(ref _nestedRead, NestedState.StreamInUse) == NestedState.StreamInUse) 771_nestedRead = NestedState.StreamNotInUse;
System\Net\Security\SslStream.IO.cs (30)
20private NestedState _nestedAuth; 66if (Interlocked.Exchange(ref _nestedRead, NestedState.StreamDisposed) == NestedState.StreamNotInUse && 67Interlocked.Exchange(ref _nestedAuth, NestedState.StreamDisposed) == NestedState.StreamNotInUse) 177if (Interlocked.CompareExchange(ref _nestedAuth, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 179ObjectDisposedException.ThrowIf(_nestedAuth == NestedState.StreamDisposed, this); 183if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 185ObjectDisposedException.ThrowIf(_nestedRead == NestedState.StreamDisposed, this); 190if (Interlocked.Exchange(ref _nestedWrite, NestedState.StreamInUse) != NestedState.StreamNotInUse) 192_nestedRead = NestedState.StreamNotInUse; 255_nestedRead = NestedState.StreamNotInUse; 256_nestedWrite = NestedState.StreamNotInUse; 274if (Interlocked.Exchange(ref _nestedAuth, NestedState.StreamInUse) == NestedState.StreamInUse) 392_nestedAuth = NestedState.StreamNotInUse; 588if (_nestedAuth != NestedState.StreamInUse) 849if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 851ObjectDisposedException.ThrowIf(_nestedRead == NestedState.StreamDisposed, this); 1000_nestedRead = NestedState.StreamNotInUse; 1015if (Interlocked.Exchange(ref _nestedWrite, NestedState.StreamInUse) == NestedState.StreamInUse) 1047_nestedWrite = NestedState.StreamNotInUse;
System\Net\Security\SslStream.Protocol.cs (1)
1059if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth != NestedState.StreamNotInUse)