6 writes to _Flags
System (6)
net\System\Net\_ContextAwareResult.cs (6)
116
_Flags
= StateFlags.CaptureContext;
121
_Flags
|= StateFlags.CaptureIdentity;
126
_Flags
|= StateFlags.ThreadSafeContextCopy;
251
_Flags
|= StateFlags.PostBlockStarted;
265
_Flags
|= StateFlags.PostBlockFinished;
282
_Flags
|= StateFlags.PostBlockFinished;
13 references to _Flags
System (13)
net\System\Net\_ContextAwareResult.cs (13)
161
GlobalLog.Assert(AsyncCallback != null || (
_Flags
& StateFlags.CaptureContext) != 0, "ContextAwareResult#{0}::ContextCopy|No context captured - specify a callback or forceCaptureContext.", ValidationHelper.HashString(this));
165
if ((
_Flags
& StateFlags.PostBlockFinished) == 0)
189
GlobalLog.Assert(!InternalPeekCompleted || (
_Flags
& StateFlags.ThreadSafeContextCopy) != 0, "ContextAwareResult#{0}::Identity|Called on completed result.", ValidationHelper.HashString(this));
201
GlobalLog.Assert((
_Flags
& StateFlags.CaptureIdentity) != 0, "ContextAwareResult#{0}::Identity|No identity captured - specify captureIdentity.", ValidationHelper.HashString(this));
205
if ((
_Flags
& StateFlags.PostBlockFinished) == 0)
211
GlobalLog.Assert(!InternalPeekCompleted || (
_Flags
& StateFlags.ThreadSafeContextCopy) != 0, "ContextAwareResult#{0}::Identity|Result became completed during call.", ValidationHelper.HashString(this));
261
if ((
_Flags
& (StateFlags.PostBlockStarted | StateFlags.PostBlockFinished)) != StateFlags.PostBlockStarted)
278
if ((
_Flags
& (StateFlags.PostBlockStarted | StateFlags.PostBlockFinished)) != StateFlags.PostBlockStarted)
364
GlobalLog.Assert((
_Flags
& StateFlags.PostBlockStarted) != 0, "ContextAwareResult#{0}::CaptureOrComplete|Called without calling StartPostingAsyncOp.", ValidationHelper.HashString(this));
367
bool capturingContext = AsyncCallback != null || (
_Flags
& StateFlags.CaptureContext) != 0;
373
if ((
_Flags
& StateFlags.CaptureIdentity) != 0 && !InternalPeekCompleted &&
435
if ((
_Flags
& StateFlags.PostBlockStarted) == 0)
461
ExecutionContext.Run((
_Flags
& StateFlags.ThreadSafeContextCopy) != 0 ? context.CreateCopy() : context,