44 references to SocketAsyncOperation
netstandard (1)
netstandard.cs (1)
1270[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.SocketAsyncOperation))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
760[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.SocketAsyncOperation))]
System.Net (1)
System.Net.cs (1)
41[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.SocketAsyncOperation))]
System.Net.Sockets (41)
System\Net\Sockets\NetEventSource.Sockets.cs (2)
43public static void NotLoggedFile(string filePath, Socket socket, SocketAsyncOperation completedOperation) => 47private void NotLoggedFile(string filePath, int socketHash, SocketAsyncOperation completedOperation) =>
System\Net\Sockets\Socket.cs (11)
2858e.StartOperationCommon(this, SocketAsyncOperation.Accept); 2913e.StartOperationCommon(this, SocketAsyncOperation.Connect); 2944e.StartOperationCommon(this, SocketAsyncOperation.Connect); 3000e.StartOperationCommon(attemptSocket, SocketAsyncOperation.Connect); 3041e.StartOperationCommon(this, SocketAsyncOperation.Disconnect); 3066e.StartOperationCommon(this, SocketAsyncOperation.Receive); 3122e.StartOperationCommon(this, SocketAsyncOperation.ReceiveFrom); 3170e.StartOperationCommon(this, SocketAsyncOperation.ReceiveMessageFrom); 3195e.StartOperationCommon(this, SocketAsyncOperation.Send); 3228e.StartOperationCommon(this, SocketAsyncOperation.SendPackets); 3273e.StartOperationCommon(this, SocketAsyncOperation.SendTo);
System\Net\Sockets\SocketAsyncEventArgs.cs (28)
37private SocketAsyncOperation _completedOperation; 209if (LastOperation <= SocketAsyncOperation.Connect) 226case SocketAsyncOperation.Accept: 230case SocketAsyncOperation.Connect: 248public SocketAsyncOperation LastOperation 546internal void StartOperationCommon(Socket? socket, SocketAsyncOperation operation) 562(SocketsTelemetry.Log.IsEnabled() && (operation == SocketAsyncOperation.Connect || operation == SocketAsyncOperation.Accept))) 611if (_operating == OperationState.InProgress && _completedOperation == SocketAsyncOperation.Connect) 639if (_completedOperation == SocketAsyncOperation.Connect && !_userSocket) 648case SocketAsyncOperation.SendPackets: 856if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(_connectSocket?.SocketType, SocketAsyncOperation.Connect, internalArgs.BytesTransferred); 908case SocketAsyncOperation.Accept: 935case SocketAsyncOperation.Connect: 959case SocketAsyncOperation.Disconnect: 964case SocketAsyncOperation.ReceiveFrom: 991case SocketAsyncOperation.ReceiveMessageFrom: 1015case SocketAsyncOperation.SendPackets: 1056if (LastOperation <= SocketAsyncOperation.Connect) 1062private static void LogBytesTransferEvents(SocketType? socketType, SocketAsyncOperation operation, int bytesTransferred) 1066case SocketAsyncOperation.Receive: 1067case SocketAsyncOperation.ReceiveFrom: 1068case SocketAsyncOperation.ReceiveMessageFrom: 1069case SocketAsyncOperation.Accept: 1073case SocketAsyncOperation.Send: 1074case SocketAsyncOperation.SendTo: 1075case SocketAsyncOperation.SendPackets: 1076case SocketAsyncOperation.Connect: