Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ OnCompleted() [7/7]

override void System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.OnCompleted ( SocketAsyncEventArgs _)
inlineprotectedvirtual

Reimplemented from System.Net.Sockets.SocketAsyncEventArgs.

Definition at line 86 of file Socket.cs.

87 {
90 {
91 return;
92 }
93 object userToken = base.UserToken;
94 base.UserToken = null;
97 if (executionContext == null)
98 {
100 return;
101 }
102 _executionContext = null;
104 {
106 tuple.Item1.InvokeContinuation(tuple.Item2, tuple.Item3, forceAsync: false, requiresExecutionContextFlow: false);
107 }, (this, action, userToken));
108 }
static readonly Action< object > s_completedSentinel
Definition Socket.cs:47
AwaitableSocketAsyncEventArgs(Socket owner, bool isReceiveForCaching)
Definition Socket.cs:68
void InvokeContinuation(Action< object > continuation, object state, bool forceAsync, bool requiresExecutionContextFlow)
Definition Socket.cs:353
static void Run(ExecutionContext executionContext, ContextCallback callback, object? state)
static int CompareExchange(ref int location1, int value, int comparand)

References System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.AwaitableSocketAsyncEventArgs(), System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs._continuation, System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs._executionContext, System.action, System.Threading.Interlocked.CompareExchange(), System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.InvokeContinuation(), System.Threading.ExecutionContext.Run(), and System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.s_completedSentinel.