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)
66
if (Interlocked.Exchange(ref _nestedRead, NestedState.StreamDisposed) == NestedState.
StreamNotInUse
&&
67
Interlocked.Exchange(ref _nestedAuth, NestedState.StreamDisposed) == NestedState.
StreamNotInUse
)
177
if (Interlocked.CompareExchange(ref _nestedAuth, NestedState.StreamInUse, NestedState.
StreamNotInUse
) != NestedState.
StreamNotInUse
)
183
if (Interlocked.CompareExchange(ref _nestedRead, NestedState.StreamInUse, NestedState.
StreamNotInUse
) != NestedState.
StreamNotInUse
)
190
if (Interlocked.Exchange(ref _nestedWrite, NestedState.StreamInUse) != NestedState.
StreamNotInUse
)
192
_nestedRead = NestedState.
StreamNotInUse
;
255
_nestedRead = NestedState.
StreamNotInUse
;
256
_nestedWrite = NestedState.
StreamNotInUse
;
392
_nestedAuth = NestedState.
StreamNotInUse
;
849
if (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)
1059
if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth != NestedState.
StreamNotInUse
)