36 references to NestedState
System.Net.Security (36)
System\Net\Security\SslStream.cs (5)
177
private
NestedState
_nestedWrite;
178
private
NestedState
_nestedRead;
750
if (Interlocked.Exchange(ref _nestedRead,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
771
_nestedRead =
NestedState
.StreamNotInUse;
System\Net\Security\SslStream.IO.cs (30)
20
private
NestedState
_nestedAuth;
66
if (Interlocked.Exchange(ref _nestedRead,
NestedState
.StreamDisposed) ==
NestedState
.StreamNotInUse &&
67
Interlocked.Exchange(ref _nestedAuth,
NestedState
.StreamDisposed) ==
NestedState
.StreamNotInUse)
177
if (Interlocked.CompareExchange(ref _nestedAuth,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
179
ObjectDisposedException.ThrowIf(_nestedAuth ==
NestedState
.StreamDisposed, this);
183
if (Interlocked.CompareExchange(ref _nestedRead,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
185
ObjectDisposedException.ThrowIf(_nestedRead ==
NestedState
.StreamDisposed, this);
190
if (Interlocked.Exchange(ref _nestedWrite,
NestedState
.StreamInUse) !=
NestedState
.StreamNotInUse)
192
_nestedRead =
NestedState
.StreamNotInUse;
255
_nestedRead =
NestedState
.StreamNotInUse;
256
_nestedWrite =
NestedState
.StreamNotInUse;
274
if (Interlocked.Exchange(ref _nestedAuth,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
392
_nestedAuth =
NestedState
.StreamNotInUse;
588
if (_nestedAuth !=
NestedState
.StreamInUse)
849
if (Interlocked.CompareExchange(ref _nestedRead,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
851
ObjectDisposedException.ThrowIf(_nestedRead ==
NestedState
.StreamDisposed, this);
1000
_nestedRead =
NestedState
.StreamNotInUse;
1015
if (Interlocked.Exchange(ref _nestedWrite,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
1047
_nestedWrite =
NestedState
.StreamNotInUse;
System\Net\Security\SslStream.Protocol.cs (1)
1059
if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth !=
NestedState
.StreamNotInUse)