17 references to StreamNotInUse
System.Net.Security (17)
System\Net\Security\SslStream.cs (1)
772
_nestedRead = NestedState.
StreamNotInUse
;
System\Net\Security\SslStream.IO.cs (15)
67
if (Interlocked.Exchange(ref _nestedRead, NestedState.StreamDisposed) == NestedState.
StreamNotInUse
&&
68
Interlocked.Exchange(ref _nestedAuth, NestedState.StreamDisposed) == NestedState.
StreamNotInUse
)
180
if (Interlocked.CompareExchange(ref _nestedAuth, NestedState.StreamInUse, NestedState.
StreamNotInUse
) != NestedState.
StreamNotInUse
)
186
if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.
StreamNotInUse
) != NestedState.
StreamNotInUse
)
193
if (Interlocked.Exchange(ref _nestedWrite, NestedState.StreamInUse) != NestedState.
StreamNotInUse
)
195
_nestedRead = NestedState.
StreamNotInUse
;
270
_nestedRead = NestedState.
StreamNotInUse
;
271
_nestedWrite = NestedState.
StreamNotInUse
;
438
_nestedAuth = NestedState.
StreamNotInUse
;
908
if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.
StreamNotInUse
) != NestedState.
StreamNotInUse
)
1059
_nestedRead = NestedState.
StreamNotInUse
;
1106
_nestedWrite = NestedState.
StreamNotInUse
;
System\Net\Security\SslStream.Protocol.cs (1)
1119
if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth != NestedState.
StreamNotInUse
)