36 references to NestedState
System.Net.Security (36)
System\Net\Security\SslStream.cs (5)
177private NestedState _nestedWrite; 178private NestedState _nestedRead; 751if (Interlocked.Exchange(ref _nestedRead, NestedState.StreamInUse) == NestedState.StreamInUse) 772_nestedRead = NestedState.StreamNotInUse;
System\Net\Security\SslStream.IO.cs (30)
20private NestedState _nestedAuth; 67if (Interlocked.Exchange(ref _nestedRead, NestedState.StreamDisposed) == NestedState.StreamNotInUse && 68Interlocked.Exchange(ref _nestedAuth, NestedState.StreamDisposed) == NestedState.StreamNotInUse) 180if (Interlocked.CompareExchange(ref _nestedAuth, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 182ObjectDisposedException.ThrowIf(_nestedAuth == NestedState.StreamDisposed, this); 186if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 188ObjectDisposedException.ThrowIf(_nestedRead == NestedState.StreamDisposed, this); 193if (Interlocked.Exchange(ref _nestedWrite, NestedState.StreamInUse) != NestedState.StreamNotInUse) 195_nestedRead = NestedState.StreamNotInUse; 258_nestedRead = NestedState.StreamNotInUse; 259_nestedWrite = NestedState.StreamNotInUse; 277if (Interlocked.Exchange(ref _nestedAuth, NestedState.StreamInUse) == NestedState.StreamInUse) 426_nestedAuth = NestedState.StreamNotInUse; 628if (_nestedAuth != NestedState.StreamInUse) 891if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 893ObjectDisposedException.ThrowIf(_nestedRead == NestedState.StreamDisposed, this); 1042_nestedRead = NestedState.StreamNotInUse; 1057if (Interlocked.Exchange(ref _nestedWrite, NestedState.StreamInUse) == NestedState.StreamInUse) 1089_nestedWrite = NestedState.StreamNotInUse;
System\Net\Security\SslStream.Protocol.cs (1)
1109if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth != NestedState.StreamNotInUse)