2 instantiations of TaskSocketAsyncEventArgs
System.Net.Sockets (2)
System\Net\Sockets\Socket.Tasks.cs (2)
351saea = new TaskSocketAsyncEventArgs<int>(); 615saea = new TaskSocketAsyncEventArgs<int>();
12 references to TaskSocketAsyncEventArgs
System.Net.Sockets (12)
System\Net\Sockets\Socket.Tasks.cs (12)
24private TaskSocketAsyncEventArgs<int>? _multiBufferReceiveEventArgs; 26private TaskSocketAsyncEventArgs<int>? _multiBufferSendEventArgs; 348TaskSocketAsyncEventArgs<int>? saea = Interlocked.Exchange(ref _multiBufferReceiveEventArgs, null); 352saea.Completed += (s, e) => CompleteSendReceive((Socket)s!, (TaskSocketAsyncEventArgs<int>)e, isReceive: true); 612TaskSocketAsyncEventArgs<int>? saea = Interlocked.Exchange(ref _multiBufferSendEventArgs, null); 616saea.Completed += (s, e) => CompleteSendReceive((Socket)s!, (TaskSocketAsyncEventArgs<int>)e, isReceive: false); 853private Task<int> GetTaskForSendReceive(bool pending, TaskSocketAsyncEventArgs<int> saea, bool fromNetworkStream, bool isReceive) 894private static void CompleteSendReceive(Socket s, TaskSocketAsyncEventArgs<int> saea, bool isReceive) 931/// <summary>Returns a <see cref="TaskSocketAsyncEventArgs{TResult}"/> instance for reuse.</summary> 934private void ReturnSocketAsyncEventArgs(TaskSocketAsyncEventArgs<int> saea, bool isReceive) 944ref TaskSocketAsyncEventArgs<int>? cache = ref isReceive ? ref _multiBufferReceiveEventArgs : ref _multiBufferSendEventArgs; 951/// <summary>Dispose of any cached <see cref="TaskSocketAsyncEventArgs{TResult}"/> instances.</summary>