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