terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ CaptureOrComplete()

bool System.Net.ContextAwareResult.CaptureOrComplete ( ExecutionContext cachedContext,
bool returnContext )
inlineprivate

Definition at line 155 of file ContextAwareResult.cs.

156 {
157 if (this._flags == ContextAwareResult.StateFlags.None)
158 {
159 }
160 NetEventSource.Fail(this, "Called without calling StartPostingAsyncOp.", "CaptureOrComplete");
163 if (asyncCallback != null)
164 {
165 }
167 if (!true)
168 {
169 if (flags == ContextAwareResult.StateFlags.None)
170 {
171 }
172 bool isEnabled = NetEventSource.IsEnabled;
173 if (flags == ContextAwareResult.StateFlags.None)
174 {
175 }
176 NetEventSource.Info(this, "starting identity capture", "CaptureOrComplete");
177 }
178 if (true)
179 {
180 bool internalPeekCompleted2 = base.InternalPeekCompleted;
181 }
182 if (flags == ContextAwareResult.StateFlags.None)
183 {
184 }
185 bool isEnabled2 = NetEventSource.IsEnabled;
186 if (flags == ContextAwareResult.StateFlags.None)
187 {
188 }
189 NetEventSource.Info(this, "Skipping capture", "CaptureOrComplete");
191 if (asyncCallback2 != null)
192 {
193 bool completedSynchronously = base.CompletedSynchronously;
194 if (asyncCallback2 == null)
195 {
196 }
197 NetEventSource.Fail(this, "Didn't capture context, but didn't complete synchronously!", "CaptureOrComplete");
198 if (asyncCallback2 == null)
199 {
200 }
201 bool isEnabled3 = NetEventSource.IsEnabled;
202 if (asyncCallback2 == null)
203 {
204 }
205 NetEventSource.Info(this, "starting capture", "CaptureOrComplete");
207 if ("Didn't capture context, but didn't complete synchronously!" == null)
208 {
210 if (executionContext == null)
211 {
212 goto IL_00DE;
213 }
214 }
216 IL_00DE:
217 bool isEnabled4 = NetEventSource.IsEnabled;
218 ExecutionContext context = this._context;
219 if (context != null && context == null)
220 {
221 throw new ArrayTypeMismatchException();
222 }
223 if (asyncCallback == null)
224 {
225 }
227 NetEventSource.Info(this, formattableString, "CaptureOrComplete");
228 }
229 bool completedSynchronously2 = base.CompletedSynchronously;
230 bool isEnabled5 = NetEventSource.IsEnabled;
231 NetEventSource.Info(this, "Completing synchronously", "CaptureOrComplete");
232 return true;
233 }
class f__AnonymousType0<< Count > j__TPar
ContextAwareResult(object myObject, object myState, AsyncCallback myCallBack)
ContextAwareResult.StateFlags _flags
static ExecutionContext Capture()

References System.Net.ContextAwareResult._context, System.Net.ContextAwareResult._flags, System.Threading.ExecutionContext.Capture(), System.Net.NetEventSource.Fail(), System.Net.NetEventSource.Info(), System.Net.LazyAsyncResult.InternalPeekCompleted, System.Net.NetEventSource.IsEnabled, j__TPar, and System.Net.LazyAsyncResult.m_AsyncCallback.