22 references to StateFlags
System.Net.Mail (22)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (22)
87
private
StateFlags
_flags;
109
_flags =
StateFlags
.CaptureContext;
114
_flags |=
StateFlags
.CaptureIdentity;
119
_flags |=
StateFlags
.ThreadSafeContextCopy;
133
Debug.Assert((_flags &
StateFlags
.ThreadSafeContextCopy) != 0, "Called on completed result.");
144
Debug.Assert(AsyncCallback != null || (_flags &
StateFlags
.CaptureContext) != 0, "No context captured - specify a callback or forceCaptureContext.");
148
if ((_flags &
StateFlags
.PostBlockFinished) == 0)
156
Debug.Assert((_flags &
StateFlags
.ThreadSafeContextCopy) != 0, "Result became completed during call.");
171
return (_flags &
StateFlags
.CaptureIdentity) != 0;
190
_flags |=
StateFlags
.PostBlockStarted;
198
if ((_flags & (
StateFlags
.PostBlockStarted |
StateFlags
.PostBlockFinished)) !=
StateFlags
.PostBlockStarted)
203
_flags |=
StateFlags
.PostBlockFinished;
214
if ((_flags & (
StateFlags
.PostBlockStarted |
StateFlags
.PostBlockFinished)) !=
StateFlags
.PostBlockStarted)
219
_flags |=
StateFlags
.PostBlockFinished;
270
Debug.Assert((_flags &
StateFlags
.PostBlockStarted) != 0, "Called without calling StartPostingAsyncOp.");
273
bool capturingContext = AsyncCallback != null || (_flags &
StateFlags
.CaptureContext) != 0;
278
if ((_flags &
StateFlags
.CaptureIdentity) != 0 && !InternalPeekCompleted && (!capturingContext))
337
if ((_flags &
StateFlags
.PostBlockStarted) == 0)