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