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