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)
19
private
NestedState
_nestedAuth;
65
if (Interlocked.Exchange(ref _nestedRead,
NestedState
.StreamDisposed) ==
NestedState
.StreamNotInUse &&
66
Interlocked.Exchange(ref _nestedAuth,
NestedState
.StreamDisposed) ==
NestedState
.StreamNotInUse)
194
if (Interlocked.CompareExchange(ref _nestedAuth,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
196
ObjectDisposedException.ThrowIf(_nestedAuth ==
NestedState
.StreamDisposed, this);
200
if (Interlocked.CompareExchange(ref _nestedRead,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
202
ObjectDisposedException.ThrowIf(_nestedRead ==
NestedState
.StreamDisposed, this);
207
if (Interlocked.Exchange(ref _nestedWrite,
NestedState
.StreamInUse) !=
NestedState
.StreamNotInUse)
209
_nestedRead =
NestedState
.StreamNotInUse;
272
_nestedRead =
NestedState
.StreamNotInUse;
273
_nestedWrite =
NestedState
.StreamNotInUse;
291
if (Interlocked.Exchange(ref _nestedAuth,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
385
_nestedAuth =
NestedState
.StreamNotInUse;
555
if (_nestedAuth !=
NestedState
.StreamInUse)
805
if (_sslAuthenticationOptions.AllowRenegotiation || SslProtocol == SslProtocols.Tls13 || _nestedAuth !=
NestedState
.StreamNotInUse)
828
if (Interlocked.CompareExchange(ref _nestedRead,
NestedState
.StreamInUse,
NestedState
.StreamNotInUse) !=
NestedState
.StreamNotInUse)
830
ObjectDisposedException.ThrowIf(_nestedRead ==
NestedState
.StreamDisposed, this);
955
_nestedRead =
NestedState
.StreamNotInUse;
970
if (Interlocked.Exchange(ref _nestedWrite,
NestedState
.StreamInUse) ==
NestedState
.StreamInUse)
993
_nestedWrite =
NestedState
.StreamNotInUse;