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)
460
Contract.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)
227
if (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)
56
return new SocketOperationResult(
BytesTransferred
);
Internal\SocketReceiver.cs (2)
24
var bytesTransferred =
BytesTransferred
;
41
var bytesTransferred =
BytesTransferred
;
Internal\SocketSender.cs (2)
34
var bytesTransferred =
BytesTransferred
;
68
var bytesTransferred =
BytesTransferred
;
System.Net.Sockets (13)
System\Net\Sockets\Socket.Tasks.cs (11)
879
t = Task.FromResult(fromNetworkStream & !isReceive ? 0 : saea.
BytesTransferred
);
898
int bytesTransferred = saea.
BytesTransferred
;
1073
int bytesTransferred =
BytesTransferred
;
1091
int bytesTransferred =
BytesTransferred
;
1110
int bytesTransferred =
BytesTransferred
;
1128
int bytesTransferred =
BytesTransferred
;
1151
int bytesTransferred =
BytesTransferred
;
1203
int bytesTransferred =
BytesTransferred
;
1276
int bytes =
BytesTransferred
;
1336
int bytes =
BytesTransferred
;
1358
int bytes =
BytesTransferred
;
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
841
SetResults(SocketError.Success, internalArgs.
BytesTransferred
, internalArgs.SocketFlags);
846
if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(_connectSocket?.SocketType, SocketAsyncOperation.Connect, internalArgs.
BytesTransferred
);
System.ServiceModel.UnixDomainSocket (3)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (3)
40
var bytesTransferred =
BytesTransferred
;
57
var bytesTransferred =
BytesTransferred
;
88
return
BytesTransferred
;