11 references to StreamInUse
System.Net.Security (11)
System\Net\Security\SslStream.cs (2)
751
if (Interlocked.Exchange(ref _nestedRead, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)
System\Net\Security\SslStream.IO.cs (9)
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)
277
if (Interlocked.Exchange(ref _nestedAuth, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)
628
if (_nestedAuth != NestedState.
StreamInUse
)
891
if (Interlocked.CompareExchange(ref _nestedRead, NestedState.
StreamInUse
, NestedState.StreamNotInUse) != NestedState.StreamNotInUse)
1057
if (Interlocked.Exchange(ref _nestedWrite, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)