88 {
89 bool flag = base.AsyncCallback !=
null || (
_flags & StateFlags.CaptureContext) != 0;
90 if ((
_flags & StateFlags.CaptureIdentity) != 0 && !base.InternalPeekCompleted && !flag)
91 {
93 {
95 }
97 }
98 if (flag && !base.InternalPeekCompleted)
99 {
101 {
103 }
104 if (cachedContext == null)
105 {
107 }
108 if (cachedContext != null)
109 {
110 if (!returnContext)
111 {
113 cachedContext = null;
114 }
115 else
116 {
118 }
119 }
121 {
123 }
124 }
125 else
126 {
128 {
130 }
131 cachedContext = null;
132 }
133 if (base.CompletedSynchronously)
134 {
136 {
138 }
139 base.Complete(
IntPtr.Zero);
140 return true;
141 }
142 return false;
143 }
volatile ExecutionContext _context
void SafeCaptureIdentity()
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
static ? ExecutionContext Capture()