10 instantiations of SocketOperationResult
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (10)
Internal\SocketAwaitableEventArgs.cs (2)
53
return new
SocketOperationResult
(CreateException(SocketError));
56
return new
SocketOperationResult
(BytesTransferred);
Internal\SocketReceiver.cs (4)
28
? new ValueTask<SocketOperationResult>(new
SocketOperationResult
(bytesTransferred))
29
: new ValueTask<SocketOperationResult>(new
SocketOperationResult
(CreateException(error)));
45
? new ValueTask<SocketOperationResult>(new
SocketOperationResult
(bytesTransferred))
46
: new ValueTask<SocketOperationResult>(new
SocketOperationResult
(CreateException(error)));
Internal\SocketSender.cs (4)
38
? new ValueTask<SocketOperationResult>(new
SocketOperationResult
(bytesTransferred))
39
: new ValueTask<SocketOperationResult>(new
SocketOperationResult
(CreateException(error)));
72
? new ValueTask<SocketOperationResult>(new
SocketOperationResult
(bytesTransferred))
73
: new ValueTask<SocketOperationResult>(new
SocketOperationResult
(CreateException(error)));
22 references to SocketOperationResult
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (22)
Internal\SocketAwaitableEventArgs.cs (2)
15
internal class SocketAwaitableEventArgs : SocketAsyncEventArgs, IValueTaskSource<
SocketOperationResult
>
47
public
SocketOperationResult
GetResult(short token)
Internal\SocketConnection.cs (4)
143
var
waitForDataResult = await _receiver.WaitForDataAsync(_socket);
154
var
receiveResult = await _receiver.ReceiveAsync(_socket, buffer);
194
bool IsNormalCompletion(
SocketOperationResult
result)
285
var
transferResult = await _sender.SendAsync(_socket, buffer);
Internal\SocketReceiver.cs (8)
15
public ValueTask<
SocketOperationResult
> WaitForDataAsync(Socket socket)
21
return new ValueTask<
SocketOperationResult
>(this, 0);
28
? new ValueTask<
SocketOperationResult
>(new SocketOperationResult(bytesTransferred))
29
: new ValueTask<
SocketOperationResult
>(new SocketOperationResult(CreateException(error)));
32
public ValueTask<
SocketOperationResult
> ReceiveAsync(Socket socket, Memory<byte> buffer)
38
return new ValueTask<
SocketOperationResult
>(this, 0);
45
? new ValueTask<
SocketOperationResult
>(new SocketOperationResult(bytesTransferred))
46
: new ValueTask<
SocketOperationResult
>(new SocketOperationResult(CreateException(error)));
Internal\SocketSender.cs (8)
20
public ValueTask<
SocketOperationResult
> SendAsync(Socket socket, in ReadOnlySequence<byte> buffers)
31
return new ValueTask<
SocketOperationResult
>(this, 0);
38
? new ValueTask<
SocketOperationResult
>(new SocketOperationResult(bytesTransferred))
39
: new ValueTask<
SocketOperationResult
>(new SocketOperationResult(CreateException(error)));
59
private ValueTask<
SocketOperationResult
> SendAsync(Socket socket, ReadOnlyMemory<byte> memory)
65
return new ValueTask<
SocketOperationResult
>(this, 0);
72
? new ValueTask<
SocketOperationResult
>(new SocketOperationResult(bytesTransferred))
73
: new ValueTask<
SocketOperationResult
>(new SocketOperationResult(CreateException(error)));