31 references to BytesTransferred
ClientSample (5)
Tcp\SocketReceiver.cs (2)
23_eventArgs.Completed += (_, e) => ((SocketAwaitable)e.UserToken).Complete(e.BytesTransferred, e.SocketError); 37_awaitable.Complete(_eventArgs.BytesTransferred, _eventArgs.SocketError);
Tcp\SocketSender.cs (3)
28_eventArgs.Completed += (_, e) => ((SocketAwaitable)e.UserToken).Complete(e.BytesTransferred, e.SocketError); 51_awaitable.Complete(_eventArgs.BytesTransferred, _eventArgs.SocketError); 74_awaitable.Complete(_eventArgs.BytesTransferred, _eventArgs.SocketError);
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (3)
460Contract.Assert(eventArgs.BytesTransferred == _asyncWriteEventArgs.Count, "The socket SendAsync did not send all the bytes."); 657_asyncReadSize = _asyncReadEventArgs.BytesTransferred; 700_asyncReadSize = eventArgs.BytesTransferred;
IIS.Common.TestLib (2)
TestConnections.cs (2)
227if (e.BytesTransferred == 0) 234$"Expected connection close, received data instead: \"{Encoding.ASCII.GetString(e.Buffer, 0, e.BytesTransferred)}\""));
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (5)
Internal\SocketAwaitableEventArgs.cs (1)
56return new SocketOperationResult(BytesTransferred);
Internal\SocketReceiver.cs (2)
24var bytesTransferred = BytesTransferred; 41var bytesTransferred = BytesTransferred;
Internal\SocketSender.cs (2)
34var bytesTransferred = BytesTransferred; 68var bytesTransferred = BytesTransferred;
System.Net.Sockets (13)
System\Net\Sockets\Socket.Tasks.cs (11)
879t = Task.FromResult(fromNetworkStream & !isReceive ? 0 : saea.BytesTransferred); 898int bytesTransferred = saea.BytesTransferred; 1073int bytesTransferred = BytesTransferred; 1091int bytesTransferred = BytesTransferred; 1110int bytesTransferred = BytesTransferred; 1128int bytesTransferred = BytesTransferred; 1151int bytesTransferred = BytesTransferred; 1203int bytesTransferred = BytesTransferred; 1276int bytes = BytesTransferred; 1336int bytes = BytesTransferred; 1358int bytes = BytesTransferred;
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
841SetResults(SocketError.Success, internalArgs.BytesTransferred, internalArgs.SocketFlags); 846if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(_connectSocket?.SocketType, SocketAsyncOperation.Connect, internalArgs.BytesTransferred);
System.ServiceModel.UnixDomainSocket (3)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (3)
40var bytesTransferred = BytesTransferred; 57var bytesTransferred = BytesTransferred; 88return BytesTransferred;