14 references to _eventArgs
ClientSample (14)
Tcp\SocketSender.cs (14)
27
_eventArgs
.UserToken = _awaitable;
28
_eventArgs
.Completed += (_, e) => ((SocketAwaitable)e.UserToken).Complete(e.BytesTransferred, e.SocketError);
39
if (!
_eventArgs
.MemoryBuffer.Equals(Memory<byte>.Empty))
44
_eventArgs
.SetBuffer(null, 0, 0);
47
_eventArgs
.BufferList = GetBufferList(buffers);
49
if (!_socket.SendAsync(
_eventArgs
))
51
_awaitable.Complete(
_eventArgs
.BytesTransferred,
_eventArgs
.SocketError);
60
if (
_eventArgs
.BufferList != null)
62
_eventArgs
.BufferList = null;
66
_eventArgs
.SetBuffer(MemoryMarshal.AsMemory(memory));
72
if (!_socket.SendAsync(
_eventArgs
))
74
_awaitable.Complete(
_eventArgs
.BytesTransferred,
_eventArgs
.SocketError);