45 references to SocketAsyncOperation
netstandard (1)
netstandard.cs (1)
1270[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.SocketAsyncOperation))]
System (1)
parent\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 (42)
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)
2869e.StartOperationCommon(this, SocketAsyncOperation.Accept); 2928e.StartOperationCommon(this, SocketAsyncOperation.Connect); 2959e.StartOperationCommon(this, SocketAsyncOperation.Connect); 3022e.StartOperationCommon(attemptSocket, SocketAsyncOperation.Connect); 3063e.StartOperationCommon(this, SocketAsyncOperation.Disconnect); 3088e.StartOperationCommon(this, SocketAsyncOperation.Receive); 3144e.StartOperationCommon(this, SocketAsyncOperation.ReceiveFrom); 3192e.StartOperationCommon(this, SocketAsyncOperation.ReceiveMessageFrom); 3217e.StartOperationCommon(this, SocketAsyncOperation.Send); 3250e.StartOperationCommon(this, SocketAsyncOperation.SendPackets); 3295e.StartOperationCommon(this, SocketAsyncOperation.SendTo);
System\Net\Sockets\SocketAsyncEventArgs.cs (29)
37private SocketAsyncOperation _completedOperation; 209if (LastOperation <= SocketAsyncOperation.Connect) 226case SocketAsyncOperation.Accept: 230case SocketAsyncOperation.Connect: 248public SocketAsyncOperation LastOperation 550internal void StartOperationCommon(Socket? socket, SocketAsyncOperation operation) 566(SocketsTelemetry.Log.IsEnabled() && (operation == SocketAsyncOperation.Connect || operation == SocketAsyncOperation.Accept))) 615if (_operating == OperationState.InProgress && _completedOperation == SocketAsyncOperation.Connect) 643if (_completedOperation == SocketAsyncOperation.Connect && !_userSocket) 652case SocketAsyncOperation.SendPackets: 902if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(_connectSocket?.SocketType, SocketAsyncOperation.Connect, internalArgs.BytesTransferred); 988if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(socket?.SocketType, SocketAsyncOperation.Connect, bytesTransferred); 1008case SocketAsyncOperation.Accept: 1039case SocketAsyncOperation.Connect: 1063case SocketAsyncOperation.Disconnect: 1068case SocketAsyncOperation.ReceiveFrom: 1095case SocketAsyncOperation.ReceiveMessageFrom: 1119case SocketAsyncOperation.SendPackets: 1160if (LastOperation <= SocketAsyncOperation.Connect) 1166private static void LogBytesTransferEvents(SocketType? socketType, SocketAsyncOperation operation, int bytesTransferred) 1170case SocketAsyncOperation.Receive: 1171case SocketAsyncOperation.ReceiveFrom: 1172case SocketAsyncOperation.ReceiveMessageFrom: 1173case SocketAsyncOperation.Accept: 1177case SocketAsyncOperation.Send: 1178case SocketAsyncOperation.SendTo: 1179case SocketAsyncOperation.SendPackets: 1180case SocketAsyncOperation.Connect: