17 references to StreamNotInUse
System.Net.Security (17)
System\Net\Security\SslStream.cs (1)
767_nestedRead = NestedState.StreamNotInUse;
System\Net\Security\SslStream.IO.cs (16)
65if (Interlocked.Exchange(ref _nestedRead, NestedState.StreamDisposed) == NestedState.StreamNotInUse && 66Interlocked.Exchange(ref _nestedAuth, NestedState.StreamDisposed) == NestedState.StreamNotInUse) 194if (Interlocked.CompareExchange(ref _nestedAuth, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 200if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 207if (Interlocked.Exchange(ref _nestedWrite, NestedState.StreamInUse) != NestedState.StreamNotInUse) 209_nestedRead = NestedState.StreamNotInUse; 272_nestedRead = NestedState.StreamNotInUse; 273_nestedWrite = NestedState.StreamNotInUse; 385_nestedAuth = NestedState.StreamNotInUse; 805if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth != NestedState.StreamNotInUse) 828if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 955_nestedRead = NestedState.StreamNotInUse; 993_nestedWrite = NestedState.StreamNotInUse;