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)
66if (Interlocked.Exchange(ref _nestedRead, NestedState.StreamDisposed) == NestedState.StreamNotInUse && 67Interlocked.Exchange(ref _nestedAuth, NestedState.StreamDisposed) == NestedState.StreamNotInUse) 195if (Interlocked.CompareExchange(ref _nestedAuth, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 201if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 208if (Interlocked.Exchange(ref _nestedWrite, NestedState.StreamInUse) != NestedState.StreamNotInUse) 210_nestedRead = NestedState.StreamNotInUse; 273_nestedRead = NestedState.StreamNotInUse; 274_nestedWrite = NestedState.StreamNotInUse; 410_nestedAuth = NestedState.StreamNotInUse; 830if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth != NestedState.StreamNotInUse) 852if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.StreamNotInUse) != NestedState.StreamNotInUse) 988_nestedRead = NestedState.StreamNotInUse; 1035_nestedWrite = NestedState.StreamNotInUse;