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

◆ ContextCopy

ExecutionContext System.Net.ContextAwareResult.ContextCopy
getpackage

Definition at line 45 of file ContextAwareResult.cs.

46 {
47 get
48 {
49 do
50 {
51 bool internalPeekCompleted = base.InternalPeekCompleted;
52 }
53 while (this._context != null);
54 if (this.m_AsyncCallback == null)
55 {
56 if (this._flags == ContextAwareResult.StateFlags.None)
57 {
58 }
59 NetEventSource.Fail(this, "No context captured - specify a callback or forceCaptureContext.", "ContextCopy");
60 }
62 object @lock;
63 if (this._lock == null)
64 {
65 if (flags == ContextAwareResult.StateFlags.None)
66 {
67 }
68 NetEventSource.Fail(this, "Must lock (StartPostingAsyncOp()) { ... FinishPostingAsyncOp(); } when calling ContextCopy (unless it's only called after FinishPostingAsyncOp).", "ContextCopy");
69 @lock = this._lock;
70 }
71 long num = 0L;
72 if (flags != ContextAwareResult.StateFlags.None)
73 {
75 }
76 if (num == 0L)
77 {
78 bool internalPeekCompleted2 = base.InternalPeekCompleted;
79 return this._context;
80 }
81 throw new OutOfMemoryException();
82 }
83 }
class f__AnonymousType0<< Count > j__TPar
ContextAwareResult(object myObject, object myState, AsyncCallback myCallBack)
ContextAwareResult.StateFlags _flags
static void Exit(object obj)
Definition Monitor.cs:47