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

◆ ThrowException()

void System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException ( SocketError error,
CancellationToken cancellationToken )
inlineprivate

Definition at line 494 of file Socket.cs.

495 {
496 if (error == SocketError.OperationAborted || error == SocketError.ConnectionAborted)
497 {
498 cancellationToken.ThrowIfCancellationRequested();
499 }
501 }
Exception CreateException(SocketError error, bool forAsyncThrow=true)
Definition Socket.cs:503

References System.cancellationToken, and System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.CreateException().

Referenced by System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult().