2 instantiations of TaskSocketAsyncEventArgs
System.Net.Sockets (2)
System\Net\Sockets\Socket.Tasks.cs (2)
329
saea = new
TaskSocketAsyncEventArgs
<int>();
593
saea = new
TaskSocketAsyncEventArgs
<int>();
12 references to TaskSocketAsyncEventArgs
System.Net.Sockets (12)
System\Net\Sockets\Socket.Tasks.cs (12)
24
private
TaskSocketAsyncEventArgs
<int>? _multiBufferReceiveEventArgs;
26
private
TaskSocketAsyncEventArgs
<int>? _multiBufferSendEventArgs;
326
TaskSocketAsyncEventArgs
<int>? saea = Interlocked.Exchange(ref _multiBufferReceiveEventArgs, null);
330
saea.Completed += (s, e) => CompleteSendReceive((Socket)s!, (
TaskSocketAsyncEventArgs
<int>)e, isReceive: true);
590
TaskSocketAsyncEventArgs
<int>? saea = Interlocked.Exchange(ref _multiBufferSendEventArgs, null);
594
saea.Completed += (s, e) => CompleteSendReceive((Socket)s!, (
TaskSocketAsyncEventArgs
<int>)e, isReceive: false);
831
private Task<int> GetTaskForSendReceive(bool pending,
TaskSocketAsyncEventArgs
<int> saea, bool fromNetworkStream, bool isReceive)
872
private static void CompleteSendReceive(Socket s,
TaskSocketAsyncEventArgs
<int> saea, bool isReceive)
909
/// <summary>Returns a <see cref="
TaskSocketAsyncEventArgs
{TResult}"/> instance for reuse.</summary>
912
private void ReturnSocketAsyncEventArgs(
TaskSocketAsyncEventArgs
<int> saea, bool isReceive)
922
ref
TaskSocketAsyncEventArgs
<int>? cache = ref isReceive ? ref _multiBufferReceiveEventArgs : ref _multiBufferSendEventArgs;
929
/// <summary>Dispose of any cached <see cref="
TaskSocketAsyncEventArgs
{TResult}"/> instances.</summary>