12 references to Stream
Sockets.FunctionalTests (12)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
1027
var ignore = connection.
Stream
.WriteAsync(scratchBuffer, 0, scratchBuffer.Length);
1082
await connection.
Stream
.WriteAsync(scratchBuffer, 0, scratchBuffer.Length);
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (10)
335
var ignore = connection.
Stream
.WriteAsync(scratchBuffer, 0, scratchBuffer.Length);
390
await connection.
Stream
.ReadAsync(scratchBuffer, 0, scratchBuffer.Length);
593
await AssertStreamAborted(connection.
Stream
, chunkSize * chunks);
696
using (var sslStream = new SslStream(connection.
Stream
, false, (sender, cert, chain, errors) => true, null))
717
await AssertStreamAborted(connection.
Stream
, chunkSize * chunks);
824
await connection.
Stream
.WriteAsync(buffer, 0, buffer.Length);
844
await AssertStreamAborted(connection.
Stream
, responseSize);
914
await AssertBytesReceivedAtTargetRate(connection.
Stream
, expectedBytes: 33_553_537, targetBytesPerSecond);
1001
await AssertBytesReceivedAtTargetRate(connection.
Stream
, expectedBytes: 268_439_596, targetBytesPerSecond);
1080
await AssertStreamCompletedAtTargetRate(connection.
Stream
, expectedBytes: 33_553_556, targetBytesPerSecond);