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)
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)
292
if (Interlocked.Exchange(ref _nestedAuth, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)
580
if (_nestedAuth != NestedState.
StreamInUse
)
852
if (Interlocked.CompareExchange(ref _nestedRead, NestedState.
StreamInUse
, NestedState.StreamNotInUse) != NestedState.StreamNotInUse)
1003
if (Interlocked.Exchange(ref _nestedWrite, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)