36 references to NestedState
System.Net.Security (36)
System\Net\Security\SslStream.cs (5)
177
private
NestedState
_nestedWrite;
178
private
NestedState
_nestedRead;
746
if (Interlocked.Exchange(ref _nestedRead,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
767
_nestedRead =
NestedState
.StreamNotInUse;
System\Net\Security\SslStream.IO.cs (31)
20
private
NestedState
_nestedAuth;
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)
197
ObjectDisposedException.ThrowIf(_nestedAuth ==
NestedState
.StreamDisposed, this);
201
if (Interlocked.CompareExchange(ref _nestedRead,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
203
ObjectDisposedException.ThrowIf(_nestedRead ==
NestedState
.StreamDisposed, this);
208
if (Interlocked.Exchange(ref _nestedWrite,
NestedState
.StreamInUse) !=
NestedState
.StreamNotInUse)
210
_nestedRead =
NestedState
.StreamNotInUse;
273
_nestedRead =
NestedState
.StreamNotInUse;
274
_nestedWrite =
NestedState
.StreamNotInUse;
292
if (Interlocked.Exchange(ref _nestedAuth,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
410
_nestedAuth =
NestedState
.StreamNotInUse;
580
if (_nestedAuth !=
NestedState
.StreamInUse)
830
if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth !=
NestedState
.StreamNotInUse)
852
if (Interlocked.CompareExchange(ref _nestedRead,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
854
ObjectDisposedException.ThrowIf(_nestedRead ==
NestedState
.StreamDisposed, this);
988
_nestedRead =
NestedState
.StreamNotInUse;
1003
if (Interlocked.Exchange(ref _nestedWrite,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
1035
_nestedWrite =
NestedState
.StreamNotInUse;