6 writes to _flags
System.Net.Requests (6)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (6)
109
_flags
= StateFlags.CaptureContext;
114
_flags
|= StateFlags.CaptureIdentity;
119
_flags
|= StateFlags.ThreadSafeContextCopy;
190
_flags
|= StateFlags.PostBlockStarted;
203
_flags
|= StateFlags.PostBlockFinished;
219
_flags
|= StateFlags.PostBlockFinished;
11 references to _flags
System.Net.Requests (11)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (11)
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;
198
if ((
_flags
& (StateFlags.PostBlockStarted | StateFlags.PostBlockFinished)) != StateFlags.PostBlockStarted)
214
if ((
_flags
& (StateFlags.PostBlockStarted | StateFlags.PostBlockFinished)) != StateFlags.PostBlockStarted)
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)