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)
133Debug.Assert((_flags & StateFlags.ThreadSafeContextCopy) != 0, "Called on completed result."); 144Debug.Assert(AsyncCallback != null || (_flags & StateFlags.CaptureContext) != 0, "No context captured - specify a callback or forceCaptureContext."); 148if ((_flags & StateFlags.PostBlockFinished) == 0) 156Debug.Assert((_flags & StateFlags.ThreadSafeContextCopy) != 0, "Result became completed during call."); 171return (_flags & StateFlags.CaptureIdentity) != 0; 198if ((_flags & (StateFlags.PostBlockStarted | StateFlags.PostBlockFinished)) != StateFlags.PostBlockStarted) 214if ((_flags & (StateFlags.PostBlockStarted | StateFlags.PostBlockFinished)) != StateFlags.PostBlockStarted) 270Debug.Assert((_flags & StateFlags.PostBlockStarted) != 0, "Called without calling StartPostingAsyncOp."); 273bool capturingContext = AsyncCallback != null || (_flags & StateFlags.CaptureContext) != 0; 278if ((_flags & StateFlags.CaptureIdentity) != 0 && !InternalPeekCompleted && (!capturingContext)) 337if ((_flags & StateFlags.PostBlockStarted) == 0)