15 types derived from PipeReader
InMemory.FunctionalTests (4)
Http3\WebTransport\WebTransportTestUtilities.cs (1)
161class StreamReader : PipeReader
src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
10internal sealed class CompletionPipeReader : PipeReader
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
61private class PassThroughPipeReader : PipeReader
TestTransport\InMemoryTransportConnection.cs (1)
115private class ObservablePipeReader : PipeReader
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpRequestPipeReader.cs (1)
13internal sealed class HttpRequestPipeReader : PipeReader
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
61private class PassThroughPipeReader : PipeReader
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
10internal sealed class CompletionPipeReader : PipeReader
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Servers\Kestrel\shared\CompletionPipeReader.cs (1)
10internal sealed class CompletionPipeReader : PipeReader
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Shared\TestPipeReader.cs (1)
8public class TestPipeReader : PipeReader
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTests.cs (1)
2932internal class PipeReaderWrapper : PipeReader
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
61private class PassThroughPipeReader : PipeReader
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (1)
88private class MockPipeReader : PipeReader
System.IO.Pipelines (3)
System\IO\Pipelines\Pipe.DefaultPipeReader.cs (1)
13private sealed class DefaultPipeReader : PipeReader, IValueTaskSource<ReadResult>
System\IO\Pipelines\SequencePipeReader.cs (1)
10internal sealed class SequencePipeReader : PipeReader
System\IO\Pipelines\StreamPipeReader.cs (1)
12internal sealed class StreamPipeReader : PipeReader
301 references to PipeReader
Aspire.Hosting (2)
Dcp\DcpHostService.cs (2)
278var reader = PipeReader.Create(stream);
ClientSample (3)
RawSample.cs (1)
75private static async Task ReceiveLoop(TextWriter output, PipeReader input)
src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 14public PipeReader Input { get; }
http2cat (4)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
IIS.FunctionalTests (4)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
IIS.LongTests (4)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
IIS.NewHandler.FunctionalTests (4)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
IIS.NewShim.FunctionalTests (4)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
IIS.ShadowCopy.Tests (4)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
IISExpress.FunctionalTests (4)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
InMemory.FunctionalTests (15)
Http2\PipeReaderFactory.cs (2)
15private static readonly Action<object> _cancelReader = state => ((PipeReader)state).CancelPendingRead(); 17public static PipeReader CreateFromStream(PipeOptions options, Stream stream, CancellationToken cancellationToken)
Http2\TlsTests.cs (3)
74var reader = PipeReaderFactory.CreateFromStream(PipeOptions.Default, sslStream, CancellationToken.None); 83private async Task WaitForConnectionErrorAsync(PipeReader reader, bool ignoreNonGoAwayFrames, int expectedLastStreamId, Http2ErrorCode expectedErrorCode) 103private async Task<Http2Frame> ReceiveFrameAsync(PipeReader reader)
RequestTests.cs (1)
1163static async Task<ReadResult> ReadAtLeastAsync(PipeReader reader, int numBytes)
src\Servers\Kestrel\shared\CompletionPipeReader.cs (2)
12private readonly PipeReader _inner; 18public CompletionPipeReader(PipeReader inner)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (3)
35public PipeReader Input { get; } 63private readonly PipeReader _input; 65public PassThroughPipeReader(PipeReader input)
TestTransport\InMemoryTransportConnection.cs (4)
43public PipeReader Output => Application.Input; 111public PipeReader Input { get; } 117private readonly PipeReader _reader; 122public ObservablePipeReader(PipeReader reader)
Interop.FunctionalTests (2)
HttpClientHttp2InteropTests.cs (2)
269var reader = context.Request.BodyReader; 328var reader = context.Request.BodyReader;
Microsoft.AspNetCore.App.Analyzers.Test (1)
Verifiers\CSharpAnalyzerVerifier.cs (1)
65TrimAssemblyExtension(typeof(System.IO.Pipelines.PipeReader).Assembly.Location),
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSDataStream.cs (1)
86public PipeReader PipeReader { get; }
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
ServerStreamingServerCallHandlerTests.cs (1)
261public async Task<string?> ReadLineAsync(PipeReader pipeReader)
Microsoft.AspNetCore.Http (5)
Features\RequestBodyPipeFeature.cs (4)
13private PipeReader? _internalPipeReader; 31public PipeReader Reader 39_internalPipeReader = PipeReader.Create(_context.Request.Body, _defaultReaderOptions); 43((PipeReader)self).Complete();
Internal\DefaultHttpRequest.cs (1)
172public override PipeReader BodyReader
Microsoft.AspNetCore.Http.Abstractions (3)
HttpRequest.cs (3)
114/// Gets the request body <see cref="PipeReader"/>. 116/// <value>The request body <see cref="PipeReader"/>.</value> 117public virtual PipeReader BodyReader { get => throw new NotImplementedException(); }
Microsoft.AspNetCore.Http.Connections (8)
Internal\Transports\LongPollingServerTransport.cs (3)
12private readonly PipeReader _application; 17public LongPollingServerTransport(CancellationToken timeoutToken, PipeReader application, ILoggerFactory loggerFactory) 21public LongPollingServerTransport(CancellationToken timeoutToken, PipeReader application, ILoggerFactory loggerFactory, HttpConnectionContext? connection)
Internal\Transports\ServerSentEventsServerTransport.cs (3)
12private readonly PipeReader _application; 17public ServerSentEventsServerTransport(PipeReader application, string connectionId, ILoggerFactory loggerFactory) 21public ServerSentEventsServerTransport(PipeReader application, string connectionId, HttpConnectionContext? connection, ILoggerFactory loggerFactory)
src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 14public PipeReader Input { get; }
Microsoft.AspNetCore.Http.Connections.Client (5)
Internal\LongPollingTransport.cs (1)
32public PipeReader Input => _transport!.Input;
Internal\ServerSentEventsTransport.cs (1)
33public PipeReader Input => _transport!.Input;
Internal\WebSocketsTransport.cs (1)
51public PipeReader Input => _transport!.Input;
src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 14public PipeReader Input { get; }
Microsoft.AspNetCore.Http.Extensions (2)
RequestDelegateFactory.cs (2)
748else if (parameter.ParameterType == typeof(PipeReader)) 862else if (parameter.ParameterType == typeof(PipeReader))
Microsoft.AspNetCore.Http.Extensions.Tests (6)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
499public PipeRequestBodyFeature(PipeReader pipeReader) 503public PipeReader Reader { get; set; }
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (4)
314var pipeReader = PipeReader.Create(new MemoryStream(requestBodyBytes)); 355var pipeReader = PipeReader.Create(new MemoryStream(requestBodyBytes));
Microsoft.AspNetCore.Http.Features (3)
IRequestBodyPipeFeature.cs (3)
9/// Represents the HTTP request body as a <see cref="PipeReader"/>. 14/// Gets a <see cref="PipeReader"/> representing the request body, if any. 16PipeReader Reader { get; }
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
499public PipeRequestBodyFeature(PipeReader pipeReader) 503public PipeReader Reader { get; set; }
Microsoft.AspNetCore.Http.Results (6)
Results.cs (3)
413/// Writes the contents of specified <see cref="System.IO.Pipelines.PipeReader"/> to the response. 419/// <param name="pipeReader">The <see cref="System.IO.Pipelines.PipeReader"/> to write to the response.</param> 432PipeReader pipeReader,
TypedResults.cs (3)
423/// Writes the contents of the specified <see cref="System.IO.Pipelines.PipeReader"/> to the response. 432/// <param name="pipeReader">The <see cref="System.IO.Pipelines.PipeReader"/> to write to the response.</param> 442PipeReader pipeReader,
Microsoft.AspNetCore.Http.Results.Tests (4)
ResultsTests.cs (2)
3021 => Results.Stream(PipeReader.Create(stream), contentType, fileDownloadName, lastModified, entityTag, enableRangeProcessing), 368Assert.Throws<ArgumentNullException>("pipeReader", () => Results.Stream(default(PipeReader)));
TypedResultsTests.cs (2)
342Assert.Throws<ArgumentNullException>("pipeReader", () => TypedResults.Stream(default(PipeReader))); 3861 => TypedResults.Stream(PipeReader.Create(stream), contentType, fileDownloadName, lastModified, entityTag, enableRangeProcessing),
Microsoft.AspNetCore.Http.Tests (4)
Features\FormFeatureTests.cs (1)
120public PipeReader Reader { get; set; }
Features\RequestBodyPipeFeatureTests.cs (2)
22var pipeBody = feature.Reader; 33var _ = feature.Reader;
Internal\DefaultHttpRequestTests.cs (1)
246var bodyPipe = context.Request.BodyReader;
Microsoft.AspNetCore.OpenApi (4)
Extensions\JsonTypeInfoExtensions.cs (1)
35[typeof(PipeReader)] = "PipeReader",
Services\OpenApiDocumentService.cs (1)
638if (bodyParameter.Type == typeof(Stream) || bodyParameter.Type == typeof(PipeReader))
Services\Schemas\OpenApiSchemaService.cs (1)
64if (type == typeof(IFormFile) || type == typeof(Stream) || type == typeof(PipeReader))
Services\Schemas\OpenApiSchemaStore.cs (1)
44[new OpenApiSchemaKey(typeof(PipeReader), null)] = new JsonObject
Microsoft.AspNetCore.OpenApi.Tests (3)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (2)
1086builder.MapGet("/pipereader", (PipeReader pipeReader) => { }); 1131private void ActionWithPipeReader(PipeReader pipeReader) { }
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (1)
184builder.MapPost("/pipereader", ([FromBody] PipeReader stream) => { });
Microsoft.AspNetCore.OutputCaching.Tests (1)
CachedResponseBodyTests.cs (1)
96static async Task ReceiveDataAsync(PipeReader reader, List<byte[]> receivedSegments, CancellationToken cancellationToken)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
ResponseCachingBenchmark.cs (1)
94private async ValueTask ConsumeAsync(PipeReader reader, CancellationToken cancellationToken)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
CachedResponseBodyTests.cs (1)
101static async Task ReceiveDataAsync(PipeReader reader, List<byte[]> receivedSegments, CancellationToken cancellationToken)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
Microsoft.AspNetCore.Server.IIS (8)
Core\OutputProducer.cs (1)
31public PipeReader Reader => _pipe.Reader;
src\Shared\ServerInfrastructure\DuplexPipe.cs (3)
17/// two <see cref="PipeReader"/>s and two <see cref="PipeWriter"/>s - it is only how they are grouped that differs. 21public DuplexPipe(PipeReader reader, PipeWriter writer) 27public PipeReader Input { get; }
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
Microsoft.AspNetCore.Server.Kestrel.Core (22)
Internal\Http\Http1Connection.cs (1)
74public PipeReader Input { get; }
Internal\Http\HttpProtocol.cs (1)
238public PipeReader RequestBodyPipeReader { get; set; } = default!;
Internal\Http\HttpProtocol.FeatureCollection.cs (3)
88PipeReader IRequestBodyPipeFeature.Reader 95RequestBodyPipeReader = PipeReader.Create(RequestBody, new StreamPipeReaderOptions(_context.MemoryPool, _context.MemoryPool.GetMinimumSegmentSize(), _context.MemoryPool.GetMinimumAllocSize(), useZeroByteReads: true)); 99((PipeReader)self).Complete();
Internal\Http2\Http2Connection.cs (2)
209public PipeReader Input => _input.Reader; 1850private async Task CopyPipeAsync(PipeReader reader, PipeWriter writer)
Internal\Http2\Http2FrameWriter.cs (1)
186var reader = producer.PipeReader;
Internal\Http2\Http2OutputProducer.cs (2)
34private readonly PipeReader _pipeReader; 81public PipeReader PipeReader => _pipeReader;
Internal\Http3\Http3ControlStream.cs (1)
69public PipeReader Input => _context.Transport.Input;
Internal\Http3\Http3OutputProducer.cs (1)
26private readonly PipeReader _pipeReader;
Internal\Http3\Http3PendingStream.cs (1)
42var Input = context.Transport.Input;
Internal\Http3\Http3Stream.cs (1)
73public PipeReader Input => _context.Transport.Input;
Internal\Infrastructure\BodyControl.cs (1)
58public (Stream request, Stream response, PipeReader reader, PipeWriter writer) Start(MessageBody body)
src\Shared\ServerInfrastructure\DuplexPipe.cs (3)
17/// two <see cref="PipeReader"/>s and two <see cref="PipeWriter"/>s - it is only how they are grouped that differs. 21public DuplexPipe(PipeReader reader, PipeWriter writer) 27public PipeReader Input { get; }
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Http2\Http2FrameWriterTests.cs (1)
100public static async Task<byte[]> ReadForLengthAsync(this PipeReader pipeReader, int length)
HttpConnectionTests.cs (1)
28transport: new DuplexPipe(Mock.Of<PipeReader>(), Mock.Of<PipeWriter>()));
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (3)
35public PipeReader Input { get; } 63private readonly PipeReader _input; 65public PassThroughPipeReader(PipeReader input)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (7)
ChunkWriterBenchmark.cs (1)
16private PipeReader _reader;
Http2\Http2ConnectionBenchmarkBase.cs (1)
152internal async ValueTask ReceiveFrameAsync(PipeReader pipeReader, uint maxFrameSize = Http2PeerSettings.DefaultMaxFrameSize)
InMemoryTransportBenchmark.cs (1)
184public PipeReader Output => Application.Input;
Mocks\MockDuplexPipe.cs (2)
10public MockDuplexPipe(PipeReader input, PipeWriter output) 16public PipeReader Input { get; }
src\Servers\Kestrel\shared\CompletionPipeReader.cs (2)
12private readonly PipeReader _inner; 18public CompletionPipeReader(PipeReader inner)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (4)
Internal\NamedPipeConnection.cs (1)
59public PipeReader Output => Application.Input;
src\Shared\ServerInfrastructure\DuplexPipe.cs (3)
17/// two <see cref="PipeReader"/>s and two <see cref="PipeWriter"/>s - it is only how they are grouped that differs. 21public DuplexPipe(PipeReader reader, PipeWriter writer) 27public PipeReader Input { get; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (7)
Internal\QuicStreamContext.cs (2)
75private PipeReader Output => Application.Input; 380var output = Output;
src\Servers\Kestrel\shared\CompletionPipeReader.cs (2)
12private readonly PipeReader _inner; 18public CompletionPipeReader(PipeReader inner)
src\Shared\ServerInfrastructure\DuplexPipe.cs (3)
17/// two <see cref="PipeReader"/>s and two <see cref="PipeWriter"/>s - it is only how they are grouped that differs. 21public DuplexPipe(PipeReader reader, PipeWriter writer) 27public PipeReader Input { get; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (4)
Internal\SocketConnection.cs (1)
73public PipeReader Output => Application.Input;
src\Shared\ServerInfrastructure\DuplexPipe.cs (3)
17/// two <see cref="PipeReader"/>s and two <see cref="PipeWriter"/>s - it is only how they are grouped that differs. 21public DuplexPipe(PipeReader reader, PipeWriter writer) 27public PipeReader Input { get; }
Microsoft.AspNetCore.Shared.Tests (7)
src\Shared\ServerInfrastructure\DuplexPipe.cs (3)
17/// two <see cref="PipeReader"/>s and two <see cref="PipeWriter"/>s - it is only how they are grouped that differs. 21public DuplexPipe(PipeReader reader, PipeWriter writer) 27public PipeReader Input { get; }
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
19private readonly PipeReader _input; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
30Input = PipeReader.Create(stream, readerOptions); 36public PipeReader Input { get; }
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
1499var input = startingConnectionState.Connection.Transport.Input; 1624var input = connectionState.Connection.Transport.Input;
Microsoft.AspNetCore.SignalR.Client.Tests (1)
TestTransport.cs (1)
25public PipeReader Input => _transport.Input;
Microsoft.AspNetCore.SignalR.Core (4)
HubConnectionContext.cs (3)
25private static readonly Action<object?> _cancelReader = state => ((PipeReader)state!).CancelPendingRead(); 159internal PipeReader Input => _connectionContext.Transport.Input; 498var input = Input;
HubConnectionHandler.cs (1)
265var input = connection.Input;
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Shared\TestDuplexPipe.cs (1)
12public PipeReader Input => _input;
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 14public PipeReader Input { get; }
Microsoft.AspNetCore.SignalR.Tests (7)
EndToEndTests.cs (1)
707public PipeReader Input => _transport.Input;
HubConnectionHandlerTests.cs (4)
2934private readonly PipeReader _originalPipeReader; 2938public PipeReaderWrapper(PipeReader pipeReader) 2999public PipeReader Input => WrappedPipeReader; 5285var prevPipe = connection.Application.Input;
Internal\MessageBufferTests.cs (2)
508public DuplexPipe(PipeReader reader, PipeWriter writer) 514public PipeReader Input { get; }
Microsoft.AspNetCore.SignalR.Tests.Utils (7)
PipeReaderExtensions.cs (5)
10public static async Task<bool> WaitToReadAsync(this PipeReader pipeReader) 36public static async Task<byte[]> ReadSingleAsync(this PipeReader pipeReader) 53public static async Task ConsumeAsync(this PipeReader pipeReader, int numBytes) 69public static async Task<byte[]> ReadAllAsync(this PipeReader pipeReader) 85public static async Task<byte[]> ReadAsync(this PipeReader pipeReader, int numBytes)
src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 14public PipeReader Input { get; }
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
61internal void Configure(Action<HttpContext, PipeReader> configureContext)
Microsoft.AspNetCore.WebUtilities (5)
FormPipeReader.cs (5)
36private readonly PipeReader _pipeReader; 42/// <param name="pipeReader">The <see cref="PipeReader"/> to read from.</param> 43public FormPipeReader(PipeReader pipeReader) 51/// <param name="pipeReader">The <see cref="PipeReader"/> to read from.</param> 53public FormPipeReader(PipeReader pipeReader, Encoding encoding)
Microsoft.AspNetCore.WebUtilities.Tests (17)
FormPipeReaderTests.cs (17)
17var bodyPipe = await MakePipeReader("=bar"); 27var bodyPipe = await MakePipeReader("=bar&baz=2"); 38var bodyPipe = await MakePipeReader("foo="); 48var bodyPipe = await MakePipeReader("foo"); 58var bodyPipe = await MakePipeReader("foo=&baz=2"); 69var bodyPipe = await MakePipeReader("foo&baz=2"); 80var bodyPipe = await MakePipeReader("%00"); 92var bodyPipe = await MakePipeReader("foo=1&bar=2&baz=3"); 106var bodyPipe = await MakePipeReader(content); 121var bodyPipe = await MakePipeReader(content); 135var bodyPipe = await MakePipeReader("fooooooooo=1&bar=2&baz=3&baz=4"); 149var bodyPipe = await MakePipeReader(content); 163var bodyPipe = await MakePipeReader("foo=1&bar=1234567890&baz=3&baz=4"); 177var bodyPipe = await MakePipeReader(content); 247var bodyPipe = await MakePipeReader(text: formData); 592var bodyPipe = await MakePipeReader("&&&"); 627private static async Task<PipeReader> MakePipeReader(string text)
Microsoft.CodeAnalysis.Remote.Workspaces (6)
ISolutionAssetProvider.cs (1)
24/// the code that reads from the corresponding <see cref="PipeReader"/> side of this.</param>
RemoteCallback.cs (3)
98/// cref="PipeReader"/>, but no harm will happen if it does.</param> 102Func<PipeReader, CancellationToken, ValueTask> reader, 175async Task ReadAsync(PipeReader pipeReader)
RemoteHostAssetReader.cs (2)
21PipeReader pipeReader, 28private readonly PipeReader _pipeReader = pipeReader;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Remote\ServiceDescriptorTests.cs (1)
136type != typeof(PipeReader) &&
Sockets.FunctionalTests (4)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (3)
35public PipeReader Input { get; } 63private readonly PipeReader _input; 65public PassThroughPipeReader(PipeReader input)
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (1)
84public PipeReader Input => new MockPipeReader(this);
System.IO.Pipelines (62)
System\IO\Pipelines\IDuplexPipe.cs (2)
9/// <summary>Gets the <see cref="System.IO.Pipelines.PipeReader" /> half of the duplex pipe.</summary> 10PipeReader Input { get; }
System\IO\Pipelines\Pipe.cs (4)
14/// <summary>The default <see cref="System.IO.Pipelines.PipeWriter" /> and <see cref="System.IO.Pipelines.PipeReader" /> implementation.</summary> 1164/// <summary>Gets the <see cref="System.IO.Pipelines.PipeReader" /> for this pipe.</summary> 1165/// <value>A <see cref="System.IO.Pipelines.PipeReader" /> instance for this pipe.</value> 1166public PipeReader Reader => _reader;
System\IO\Pipelines\Pipe.DefaultPipeReader.cs (1)
10/// <summary>The default <see cref="System.IO.Pipelines.PipeWriter" /> and <see cref="System.IO.Pipelines.PipeReader" /> implementation.</summary>
System\IO\Pipelines\Pipe.DefaultPipeWriter.cs (1)
10/// <summary>The default <see cref="System.IO.Pipelines.PipeWriter" /> and <see cref="System.IO.Pipelines.PipeReader" /> implementation.</summary>
System\IO\Pipelines\PipeOptions.cs (3)
20/// <param name="readerScheduler">The <see cref="System.IO.Pipelines.PipeScheduler" /> to be used to execute <see cref="System.IO.Pipelines.PipeReader" /> callbacks and async continuations.</param> 108/// <summary>Gets the <see cref="System.IO.Pipelines.PipeScheduler" /> used to execute <see cref="System.IO.Pipelines.PipeReader" /> callbacks and async continuations.</summary> 109/// <value>A <see cref="System.IO.Pipelines.PipeScheduler" /> that is used to execute <see cref="System.IO.Pipelines.PipeReader" /> callbacks and async continuations.</value>
System\IO\Pipelines\PipeReader.cs (26)
15/// <summary>Attempts to synchronously read data from the <see cref="System.IO.Pipelines.PipeReader" />.</summary> 29/// <summary>Asynchronously reads a sequence of bytes from the current <see cref="System.IO.Pipelines.PipeReader" />.</summary> 34/// <summary>Asynchronously reads a sequence of bytes from the current <see cref="System.IO.Pipelines.PipeReader" />.</summary> 40/// The call returns if the <see cref="System.IO.Pipelines.PipeReader" /> has read the minimumLength specified, or is cancelled or completed. 44/// further data is available. You should instead call <see cref="System.IO.Pipelines.PipeReader.TryRead" /> to avoid a blocking call. 47/// Subsequent calls to <see cref="System.IO.Pipelines.PipeReader.AdvanceTo(System.SequencePosition,System.SequencePosition)" /> should 61/// <summary>Asynchronously reads a sequence of bytes from the current <see cref="System.IO.Pipelines.PipeReader" />.</summary> 65/// <remarks>The call returns if the <see cref="System.IO.Pipelines.PipeReader" /> has read the minimumLength specified, or is cancelled or completed.</remarks> 86/// The <see cref="System.IO.Pipelines.ReadResult.Buffer" /> previously returned from <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> must not be accessed after this call. 87/// This is equivalent to calling <see cref="System.IO.Pipelines.PipeReader.AdvanceTo(System.SequencePosition,System.SequencePosition)" /> with identical examined and consumed positions. 96/// The <see cref="System.IO.Pipelines.ReadResult.Buffer" /> previously returned from <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> must not be accessed after this call. 100/// <summary>Returns a <see cref="System.IO.Stream" /> representation of the <see cref="System.IO.Pipelines.PipeReader" />.</summary> 101/// <param name="leaveOpen">An optional flag that indicates whether disposing the returned <see cref="System.IO.Stream" /> leaves <see cref="System.IO.Pipelines.PipeReader" /> open (<see langword="true" />) or completes <see cref="System.IO.Pipelines.PipeReader" /> (<see langword="false" />).</param> 102/// <returns>A stream that represents the <see cref="System.IO.Pipelines.PipeReader" />.</returns> 117/// <summary>Cancels the pending <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation without causing it to throw and without completing the <see cref="System.IO.Pipelines.PipeReader" />. If there is no pending operation, this cancels the next operation.</summary> 118/// <remarks>The canceled <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation returns a <see cref="System.IO.Pipelines.ReadResult" /> where <see cref="System.IO.Pipelines.ReadResult.IsCanceled" /> is <see langword="true" />.</remarks> 154/// <summary>Creates a <see cref="System.IO.Pipelines.PipeReader" /> wrapping the specified <see cref="System.IO.Stream" />.</summary> 157/// <returns>A <see cref="System.IO.Pipelines.PipeReader" /> that wraps the <see cref="System.IO.Stream" />.</returns> 158public static PipeReader Create(Stream stream, StreamPipeReaderOptions? readerOptions = null) 164/// Creates a <see cref="PipeReader"/> wrapping the specified <see cref="ReadOnlySequence{T}"/>. 167/// <returns>A <see cref="PipeReader"/> that wraps the <see cref="ReadOnlySequence{T}"/>.</returns> 168public static PipeReader Create(ReadOnlySequence<byte> sequence) 173/// <summary>Asynchronously reads the bytes from the <see cref="System.IO.Pipelines.PipeReader" /> and writes them to the specified <see cref="System.IO.Pipelines.PipeWriter" />, using a specified buffer size and cancellation token.</summary> 195/// <summary>Asynchronously reads the bytes from the <see cref="System.IO.Pipelines.PipeReader" /> and writes them to the specified stream, using a specified cancellation token.</summary>
System\IO\Pipelines\PipeReaderStream.cs (2)
14private readonly PipeReader _pipeReader; 16public PipeReaderStream(PipeReader pipeReader, bool leaveOpen)
System\IO\Pipelines\PipeScheduler.cs (1)
8/// <summary>Abstraction for running <see cref="System.IO.Pipelines.PipeReader" /> and <see cref="System.IO.Pipelines.PipeWriter" /> callbacks and continuations.</summary>
System\IO\Pipelines\PipeWriter.cs (6)
43/// <summary>Registers a callback that executes when the <see cref="System.IO.Pipelines.PipeReader" /> side of the pipe is completed.</summary> 56/// <summary>Makes bytes written available to <see cref="System.IO.Pipelines.PipeReader" /> and runs <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> continuation.</summary> 84/// <param name="leaveOpen">An optional flag that indicates whether disposing the returned <see cref="System.IO.Stream" /> leaves <see cref="System.IO.Pipelines.PipeReader" /> open (<see langword="true" />) or completes <see cref="System.IO.Pipelines.PipeReader" /> (<see langword="false" />).</param> 109/// <summary>Writes the specified byte memory range to the pipe and makes data accessible to the <see cref="System.IO.Pipelines.PipeReader" />.</summary>
System\IO\Pipelines\ReadResult.cs (9)
8/// <summary>Represents the result of a <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> call.</summary> 15/// <param name="buffer">The read-only sequence containing the bytes of data that were read in the <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> call.</param> 16/// <param name="isCanceled">A flag that indicates if the <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation that produced this <see cref="System.IO.Pipelines.ReadResult" /> was canceled by <see cref="System.IO.Pipelines.PipeReader.CancelPendingRead" />.</param> 34/// <value>A read-only sequence containing the bytes of data that were read in the <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> call.</value> 37/// <summary>Gets a value that indicates whether the current <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation was canceled by <see cref="System.IO.Pipelines.PipeReader.CancelPendingRead" />.</summary> 38/// <value><see langword="true" /> if the <see cref="System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation that produced this <see cref="System.IO.Pipelines.ReadResult" /> was canceled by <see cref="System.IO.Pipelines.PipeReader.CancelPendingRead" />; otherwise, <see langword="false" />.</value>
System\IO\Pipelines\StreamPipeReaderOptions.cs (7)
8/// <summary>Represents a set of options for controlling the creation of the <see cref="System.IO.Pipelines.PipeReader" />.</summary> 17/// <summary>Initializes a <see cref="System.IO.Pipelines.StreamPipeReaderOptions" /> instance, optionally specifying a memory pool, a minimum buffer size, a minimum read size, and whether the underlying stream should be left open after the <see cref="System.IO.Pipelines.PipeReader" /> completes.</summary> 21/// <param name="leaveOpen"><see langword="true" /> to leave the underlying stream open after the <see cref="System.IO.Pipelines.PipeReader" /> completes; <see langword="false" /> to close it. The default is <see langword="false" />.</param> 28/// <summary>Initializes a <see cref="System.IO.Pipelines.StreamPipeReaderOptions" /> instance, optionally specifying a memory pool, a minimum buffer size, a minimum read size, and whether the underlying stream should be left open after the <see cref="System.IO.Pipelines.PipeReader" /> completes.</summary> 32/// <param name="leaveOpen"><see langword="true" /> to leave the underlying stream open after the <see cref="System.IO.Pipelines.PipeReader" /> completes; <see langword="false" /> to close it. The default is <see langword="false" />.</param> 71/// <summary>Gets the value that indicates if the underlying stream should be left open after the <see cref="System.IO.Pipelines.PipeReader" /> completes.</summary> 72/// <value><see langword="true" /> if the underlying stream should be left open after the <see cref="System.IO.Pipelines.PipeReader" /> completes; otherwise, <see langword="false" />.</value>
WebTransportInteractiveSampleApp (2)
Program.cs (2)
95var inputPipe = stream.Transport.Input; 115var inputPipe = stream.Transport.Input;