17 references to StreamNotInUse
System.Net.Security (17)
System\Net\Security\SslStream.cs (1)
771_nestedRead = NestedState.StreamNotInUse;
System\Net\Security\SslStream.IO.cs (15)
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) 183if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 190if (Interlocked.Exchange(ref _nestedWrite, NestedState.StreamInUse) != NestedState.StreamNotInUse) 192_nestedRead = NestedState.StreamNotInUse; 255_nestedRead = NestedState.StreamNotInUse; 256_nestedWrite = NestedState.StreamNotInUse; 392_nestedAuth = NestedState.StreamNotInUse; 849if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 1000_nestedRead = NestedState.StreamNotInUse; 1047_nestedWrite = NestedState.StreamNotInUse;
System\Net\Security\SslStream.Protocol.cs (1)
1059if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth != NestedState.StreamNotInUse)