Base:
method
ReadAsync
System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)
19 references to ReadAsync
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpRequestStream.cs (1)
118var result = await _pipeReader.ReadAsync(cancellationToken);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (18)
HttpRequestPipeReaderTests.cs (3)
21await Assert.ThrowsAsync<ObjectDisposedException>(async () => { await pipeReader.ReadAsync(); }); 30await Assert.ThrowsAsync<TaskCanceledException>(() => pipeReader.ReadAsync().AsTask()); 41var exception = await Assert.ThrowsAsync<Exception>(() => pipeReader.ReadAsync().AsTask());
MessageBodyTests.cs (15)
69var readResult = await reader.ReadAsync(); 75readResult = await reader.ReadAsync(); 123var readResult = await reader.ReadAsync(); 125await Assert.ThrowsAsync<InvalidOperationException>(async () => await reader.ReadAsync()); 987var readResultTask = reader.ReadAsync(); 1008var readResultTask = reader.ReadAsync(); 1029var readResultTask = reader.ReadAsync(); 1050var readResultTask = reader.ReadAsync(); 1223var ex2 = await Assert.ThrowsAsync<BadHttpRequestException>(() => reader.ReadAsync().AsTask()); 1224var ex3 = await Assert.ThrowsAsync<BadHttpRequestException>(() => reader.ReadAsync().AsTask()); 1247var readResult = await reader.ReadAsync(); 1256var ex2 = await Assert.ThrowsAsync<BadHttpRequestException>(() => reader.ReadAsync().AsTask()); 1257var ex3 = await Assert.ThrowsAsync<BadHttpRequestException>(() => reader.ReadAsync().AsTask()); 1283var ex2 = await Assert.ThrowsAsync<BadHttpRequestException>(() => reader.ReadAsync().AsTask()); 1284var ex3 = await Assert.ThrowsAsync<BadHttpRequestException>(() => reader.ReadAsync().AsTask());