36 references to NestedState
System.Net.Security (36)
System\Net\Security\SslStream.cs (5)
177
private
NestedState
_nestedWrite;
178
private
NestedState
_nestedRead;
751
if (Interlocked.Exchange(ref _nestedRead,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
772
_nestedRead =
NestedState
.StreamNotInUse;
System\Net\Security\SslStream.IO.cs (30)
20
private
NestedState
_nestedAuth;
67
if (Interlocked.Exchange(ref _nestedRead,
NestedState
.StreamDisposed) ==
NestedState
.StreamNotInUse &&
68
Interlocked.Exchange(ref _nestedAuth,
NestedState
.StreamDisposed) ==
NestedState
.StreamNotInUse)
180
if (Interlocked.CompareExchange(ref _nestedAuth,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
182
ObjectDisposedException.ThrowIf(_nestedAuth ==
NestedState
.StreamDisposed, this);
186
if (Interlocked.CompareExchange(ref _nestedRead,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
188
ObjectDisposedException.ThrowIf(_nestedRead ==
NestedState
.StreamDisposed, this);
193
if (Interlocked.Exchange(ref _nestedWrite,
NestedState
.StreamInUse) !=
NestedState
.StreamNotInUse)
195
_nestedRead =
NestedState
.StreamNotInUse;
258
_nestedRead =
NestedState
.StreamNotInUse;
259
_nestedWrite =
NestedState
.StreamNotInUse;
277
if (Interlocked.Exchange(ref _nestedAuth,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
426
_nestedAuth =
NestedState
.StreamNotInUse;
628
if (_nestedAuth !=
NestedState
.StreamInUse)
891
if (Interlocked.CompareExchange(ref _nestedRead,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
893
ObjectDisposedException.ThrowIf(_nestedRead ==
NestedState
.StreamDisposed, this);
1042
_nestedRead =
NestedState
.StreamNotInUse;
1057
if (Interlocked.Exchange(ref _nestedWrite,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
1089
_nestedWrite =
NestedState
.StreamNotInUse;
System\Net\Security\SslStream.Protocol.cs (1)
1109
if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth !=
NestedState
.StreamNotInUse)