11 references to StreamInUse
System.Net.Security (11)
System\Net\Security\SslStream.cs (2)
746
if (Interlocked.Exchange(ref _nestedRead, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)
System\Net\Security\SslStream.IO.cs (9)
194
if (Interlocked.CompareExchange(ref _nestedAuth, NestedState.
StreamInUse
, NestedState.StreamNotInUse) != NestedState.StreamNotInUse)
200
if (Interlocked.CompareExchange(ref _nestedRead, NestedState.
StreamInUse
, NestedState.StreamNotInUse) != NestedState.StreamNotInUse)
207
if (Interlocked.Exchange(ref _nestedWrite, NestedState.
StreamInUse
) != NestedState.StreamNotInUse)
291
if (Interlocked.Exchange(ref _nestedAuth, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)
555
if (_nestedAuth != NestedState.
StreamInUse
)
828
if (Interlocked.CompareExchange(ref _nestedRead, NestedState.
StreamInUse
, NestedState.StreamNotInUse) != NestedState.StreamNotInUse)
970
if (Interlocked.Exchange(ref _nestedWrite, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)