22 types derived from PipeWriter
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
10internal sealed class CompletionPipeWriter : PipeWriter
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
39private class PassThroughPipeWriter : PipeWriter
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
265internal sealed class NullPipeWriter : PipeWriter, IDisposable
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Http\HttpResponsePipeWriter.cs (1)
9internal sealed class HttpResponsePipeWriter : PipeWriter
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
14internal sealed class ConcurrentPipeWriter : PipeWriter
Internal\Infrastructure\StatusCheckPipeWriter.cs (1)
12internal sealed class StatusCheckPipeWriter : PipeWriter
Internal\Infrastructure\ThrowingPipeWriter.cs (1)
8internal sealed class ThrowingPipeWriter : PipeWriter
Internal\Infrastructure\WrappingPipeWriter.cs (1)
8internal sealed class WrappingPipeWriter : PipeWriter
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
ConcurrentPipeWriterTests.cs (1)
413private class MockPipeWriter : PipeWriter
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
39private class PassThroughPipeWriter : PipeWriter
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
Mocks\NullPipeWriter.cs (1)
11internal sealed class NullPipeWriter : PipeWriter
ResponseHeadersWritingBenchmark.cs (1)
195public class Writer : PipeWriter
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
10internal sealed class CompletionPipeWriter : PipeWriter
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
10internal sealed class CompletionPipeWriter : PipeWriter
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Shared\TestPipeWriter.cs (1)
8public class TestPipeWriter : PipeWriter
Microsoft.AspNetCore.TestHost (1)
ResponseBodyPipeWriter.cs (1)
9internal sealed class ResponseBodyPipeWriter : PipeWriter
Microsoft.Extensions.Logging.Console (1)
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
15internal sealed class PooledByteBufferWriter : PipeWriter, IDisposable
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
39private class PassThroughPipeWriter : PipeWriter
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (1)
128private class MockPipeWriter : PipeWriter
System.IO.Pipelines (2)
System\IO\Pipelines\Pipe.DefaultPipeWriter.cs (1)
13private sealed class DefaultPipeWriter : PipeWriter, IValueTaskSource<FlushResult>
System\IO\Pipelines\StreamPipeWriter.cs (1)
12internal sealed class StreamPipeWriter : PipeWriter
System.Text.Json (1)
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
15internal sealed class PooledByteBufferWriter : PipeWriter, IDisposable
501 references to PipeWriter
ClientSample (3)
RawSample.cs (1)
101private static async Task SendLoop(TextReader input, PipeWriter output)
src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 16public PipeWriter Output { get; }
http2cat (13)
src\Shared\Http2cat\Http2Utilities.cs (2)
254internal static void WriteHeader(Http2Frame frame, PipeWriter output) 403public static async Task FlushAsync(PipeWriter writableBuffer)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
IIS.FunctionalTests (13)
src\Shared\Http2cat\Http2Utilities.cs (2)
254internal static void WriteHeader(Http2Frame frame, PipeWriter output) 403public static async Task FlushAsync(PipeWriter writableBuffer)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
IIS.LongTests (13)
src\Shared\Http2cat\Http2Utilities.cs (2)
254internal static void WriteHeader(Http2Frame frame, PipeWriter output) 403public static async Task FlushAsync(PipeWriter writableBuffer)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
IIS.NewHandler.FunctionalTests (13)
src\Shared\Http2cat\Http2Utilities.cs (2)
254internal static void WriteHeader(Http2Frame frame, PipeWriter output) 403public static async Task FlushAsync(PipeWriter writableBuffer)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
IIS.NewShim.FunctionalTests (13)
src\Shared\Http2cat\Http2Utilities.cs (2)
254internal static void WriteHeader(Http2Frame frame, PipeWriter output) 403public static async Task FlushAsync(PipeWriter writableBuffer)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
IIS.ShadowCopy.Tests (11)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
IISExpress.FunctionalTests (13)
src\Shared\Http2cat\Http2Utilities.cs (2)
254internal static void WriteHeader(Http2Frame frame, PipeWriter output) 403public static async Task FlushAsync(PipeWriter writableBuffer)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
InMemory.FunctionalTests (19)
Http2\Http2TestBase.cs (1)
788protected static async Task FlushAsync(PipeWriter writableBuffer)
RequestTests.cs (1)
60PipeWriter bodyPipe = null;
ResponseTests.cs (3)
3238void WriteStringWithoutFlushing(PipeWriter writer, string content) 4306var BodyWriter1 = httpContext.Response.BodyWriter; 4309var BodyWriter2 = httpContext.Response.BodyWriter;
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (2)
12private readonly PipeWriter _inner; 18public CompletionPipeWriter(PipeWriter inner)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
514protected static Task FlushAsync(PipeWriter writableBuffer) 872void WriteSpan(PipeWriter pw)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (3)
37public PipeWriter Output { get; } 41private readonly PipeWriter _output; 43public PassThroughPipeWriter(PipeWriter output)
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (5)
19public static void WriteSettings(this PipeWriter writer, Http2PeerSettings clientSettings) 31public static void WriteStartStream(this PipeWriter writer, int streamId, DynamicHPackEncoder hpackEncoder, Http2HeadersEnumerator headers, byte[] headerEncodingBuffer, bool endStream, Http2Frame frame = null) 70public static void WriteStartStream(this PipeWriter writer, int streamId, Span<byte> headerData, bool endStream, Http2Frame frame = null) 86public static void WriteData(this PipeWriter writer, int streamId, Memory<byte> data, bool endStream, Http2Frame frame = null) 97public static void WriteWindowUpdateAsync(this PipeWriter writer, int streamId, int sizeIncrement, Http2Frame frame = null)
TestTransport\InMemoryTransportConnection.cs (2)
41public PipeWriter Input => Application.Output; 113public PipeWriter Output { get; }
Microsoft.AspNetCore.Connections.Abstractions (2)
Features\IStatefulReconnectFeature.cs (2)
26/// Called when a connection reconnects. The new <see cref="PipeWriter"/> that application code should write to is passed in. 28public void OnReconnected(Func<PipeWriter, Task> notifyOnReconnect);
Microsoft.AspNetCore.Http (4)
Internal\DefaultHttpResponse.cs (1)
122public override PipeWriter BodyWriter
StreamResponseBodyFeature.cs (3)
14private PipeWriter? _pipeWriter; 52public PipeWriter Writer 58_pipeWriter = PipeWriter.Create(Stream, new StreamPipeWriterOptions(leaveOpen: true));
Microsoft.AspNetCore.Http.Abstractions (5)
Extensions\HttpResponseWritingExtensions.cs (2)
74var pipeWriter = response.BodyWriter; 100private static void WriteMultiSegmentEncoded(PipeWriter writer, string text, Encoding encoding, Span<byte> destination, int encodedLength, int minimumByteSize)
HttpResponse.cs (3)
55/// Gets the response body <see cref="PipeWriter"/> 57/// <value>The response body <see cref="PipeWriter"/>.</value> 58public virtual PipeWriter BodyWriter { get => throw new NotImplementedException(); }
Microsoft.AspNetCore.Http.Connections (6)
Internal\HttpConnectionContext.cs (2)
62internal Func<PipeWriter, Task>? NotifyOnReconnect { get; set; } 733public void OnReconnected(Func<PipeWriter, Task> notifyOnReconnect)
src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 16public PipeWriter Output { get; }
src\SignalR\common\Shared\PipeWriterStream.cs (2)
14private readonly PipeWriter _pipeWriter; 16public PipeWriterStream(PipeWriter pipeWriter)
Microsoft.AspNetCore.Http.Connections.Client (9)
Internal\LongPollingTransport.cs (1)
34public PipeWriter Output => _transport!.Output;
Internal\ServerSentEventsTransport.cs (1)
35public PipeWriter Output => _transport!.Output;
Internal\WebSocketsTransport.cs (3)
47private Func<PipeWriter, Task>? _notifyOnReconnect; 53public PipeWriter Output => _transport!.Output; 56public void OnReconnected(Func<PipeWriter, Task> notifyOnReconnect)
src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 16public PipeWriter Output { get; }
src\SignalR\common\Shared\PipeWriterStream.cs (2)
14private readonly PipeWriter _pipeWriter; 16public PipeWriterStream(PipeWriter pipeWriter)
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3988private PipeWriter _writer; 4032private Task NotifyReconnect(PipeWriter writer)
Microsoft.AspNetCore.Http.Extensions (3)
HttpResponseJsonExtensions.cs (3)
188PipeWriter body, 285PipeWriter body, 331static async Task WriteAsJsonAsyncSlow(PipeWriter body, object? value, Type type, JsonSerializerContext context,
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateFactoryTests.cs (2)
3742public PipeWriter Writer 3747return PipeWriter.Create(Stream.Null);
SendFileResponseExtensionsTests.cs (1)
111public PipeWriter Writer => throw new System.NotImplementedException();
Microsoft.AspNetCore.Http.Features (2)
IHttpResponseBodyFeature.cs (2)
19/// A <see cref="PipeWriter"/> representing the response body, if any. 21PipeWriter Writer { get; }
Microsoft.AspNetCore.Http.Results.Tests (2)
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
431public PipeWriter Writer => throw new NotImplementedException();
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
534public PipeWriter Writer => throw new NotImplementedException();
Microsoft.AspNetCore.Http.Tests (1)
Internal\DefaultHttpResponseTests.cs (1)
63var bodyPipe = response.Response.BodyWriter;
Microsoft.AspNetCore.HttpLogging (3)
ResponseBufferingStream.cs (3)
16private PipeWriter? _pipeAdapter; 44public PipeWriter Writer => _pipeAdapter ??= PipeWriter.Create(Stream, _pipeWriterOptions);
Microsoft.AspNetCore.Mvc.Core (2)
Formatters\SystemTextJsonOutputFormatter.cs (1)
90var responseWriter = httpContext.Response.BodyWriter;
Infrastructure\SystemTextJsonResultExecutor.cs (1)
68var responseWriter = response.BodyWriter;
Microsoft.AspNetCore.Mvc.Core.Test (2)
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
431public PipeWriter Writer => throw new NotImplementedException();
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
534public PipeWriter Writer => throw new NotImplementedException();
Microsoft.AspNetCore.OutputCaching (3)
IOutputCacheBufferStore.cs (1)
22ValueTask<bool> TryGetAsync(string key, PipeWriter destination, CancellationToken cancellationToken);
OutputCacheEntry.cs (1)
124public ValueTask CopyToAsync(PipeWriter destination, CancellationToken cancellationToken)
RecyclableReadOnlySequenceSegment.cs (1)
102public static async ValueTask CopyToAsync(ReadOnlySequence<byte> source, PipeWriter destination, CancellationToken cancellationToken)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (3)
EndToEndBenchmarks.cs (3)
90static Task WriteInRandomChunks(ReadOnlyMemory<byte> source, PipeWriter destination, CancellationToken cancellationToken) 156var pipe = PipeWriter.Create(oc, new StreamPipeWriterOptions(leaveOpen: true));
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
206async ValueTask<bool> IOutputCacheBufferStore.TryGetAsync(string key, PipeWriter destination, CancellationToken cancellationToken)
Microsoft.AspNetCore.OutputCaching.Tests (2)
CachedResponseBodyTests.cs (1)
90static async Task CopyDataAsync(ReadOnlySequence<byte> body, PipeWriter writer, CancellationToken cancellationToken)
TestUtils.cs (1)
373async ValueTask<bool> IOutputCacheBufferStore.TryGetAsync(string key, PipeWriter destination, CancellationToken cancellationToken)
Microsoft.AspNetCore.Owin (3)
OwinFeatureCollection.cs (3)
40private PipeWriter _responseBodyWrapper; 164PipeWriter IHttpResponseBodyFeature.Writer 170_responseBodyWrapper = PipeWriter.Create(Prop<Stream>(OwinConstants.ResponseBody), new StreamPipeWriterOptions(leaveOpen: true));
Microsoft.AspNetCore.ResponseCaching (2)
CacheEntry\CachedResponseBody.cs (2)
20public async Task CopyToAsync(PipeWriter destination, CancellationToken cancellationToken) 34private static void Copy(byte[] segment, PipeWriter destination)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (2)
ResponseCachingBenchmark.cs (2)
114public PipeResponseBodyFeature(PipeWriter pipeWriter) 121public PipeWriter Writer { get; }
Microsoft.AspNetCore.ResponseCaching.Tests (1)
CachedResponseBodyTests.cs (1)
95static async Task CopyDataAsync(CachedResponseBody body, PipeWriter writer, CancellationToken cancellationToken)
Microsoft.AspNetCore.ResponseCompression (3)
ResponseCompressionBody.cs (3)
25private PipeWriter? _pipeAdapter; 86public PipeWriter Writer 92_pipeAdapter = PipeWriter.Create(Stream, new StreamPipeWriterOptions(leaveOpen: true));
Microsoft.AspNetCore.ResponseCompression.Tests (1)
ResponseCompressionMiddlewareTest.cs (1)
1357public PipeWriter Writer => InnerFeature.Writer;
Microsoft.AspNetCore.Server.HttpSys (3)
RequestProcessing\RequestContext.FeatureCollection.cs (3)
63private PipeWriter? _pipeWriter; 432PipeWriter IHttpResponseBodyFeature.Writer 438_pipeWriter = PipeWriter.Create(_responseStream, new StreamPipeWriterOptions(leaveOpen: true));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (15)
ResponseBodyTests.cs (2)
75var writer = httpContext.Response.BodyWriter; 95var writer = httpContext.Response.BodyWriter;
src\Shared\Http2cat\Http2Utilities.cs (2)
254internal static void WriteHeader(Http2Frame frame, PipeWriter output) 403public static async Task FlushAsync(PipeWriter writableBuffer)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
Microsoft.AspNetCore.Server.IIS (20)
Core\IISHttpContext.cs (1)
117public PipeWriter? ResponsePipeWrapper { get; set; }
Core\IISHttpContext.FeatureCollection.cs (2)
192PipeWriter IHttpResponseBodyFeature.Writer 198ResponsePipeWrapper = PipeWriter.Create(ResponseBody, new StreamPipeWriterOptions(leaveOpen: true));
Core\OutputProducer.cs (3)
87private Task FlushAsync(PipeWriter pipeWriter, CancellationToken cancellationToken) 99private Task FlushNowAsync(PipeWriter pipeWriter, CancellationToken cancellationToken) 123private async Task AwaitLastFlushAndThenFlushAsync(Task lastFlushTask, PipeWriter pipeWriter, CancellationToken cancellationToken)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
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) 29public PipeWriter Output { get; }
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
Microsoft.AspNetCore.Server.Kestrel.Core (55)
Internal\Http\ChunkWriter.cs (2)
137internal static int WriteBeginChunkBytes(this ref BufferWriter<PipeWriter> start, int dataCount) 147internal static void WriteEndChunkBytes(this ref BufferWriter<PipeWriter> start)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (2)
202private bool Read(ReadOnlySequence<byte> readableBuffer, PipeWriter writableBuffer, out SequencePosition consumed, out SequencePosition examined) 400private void ReadChunkedData(in ReadOnlySequence<byte> buffer, PipeWriter writableBuffer, out SequencePosition consumed, out SequencePosition examined)
Internal\Http\Http1OutputProducer.cs (14)
72PipeWriter pipeWriter, 126var writer = new BufferWriter<PipeWriter>(_pipeWriter); 178var writer = new BufferWriter<PipeWriter>(producer._pipeWriter); 310var writer = new BufferWriter<PipeWriter>(_pipeWriter); 319private void CommitChunkInternal(ref BufferWriter<PipeWriter> writer, ReadOnlySpan<byte> buffer) 348var writer = new BufferWriter<PipeWriter>(buffer); 353private void WriteResponseHeadersInternal(ref BufferWriter<PipeWriter> writer, int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, bool autoChunk) 370private void WriteDataWrittenBeforeHeaders(ref BufferWriter<PipeWriter> writer) 506var writer = new BufferWriter<PipeWriter>(_pipeWriter); 526var writer = new BufferWriter<PipeWriter>(_pipeWriter); 563var writer = new BufferWriter<PipeWriter>(_pipeWriter); 569ref BufferWriter<PipeWriter> writer, 619var writer = new BufferWriter<PipeWriter>(_pipeWriter); 645private void WriteCurrentChunkMemoryToPipeWriter(ref BufferWriter<PipeWriter> writer)
Internal\Http\HttpHeaders.Generated.cs (1)
14809internal void CopyToFast(ref BufferWriter<PipeWriter> output)
Internal\Http\HttpProtocol.cs (1)
275public PipeWriter ResponseBodyPipeWriter { get; set; } = default!;
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
228PipeWriter IHttpResponseBodyFeature.Writer => ResponseBodyPipeWriter;
Internal\Http\HttpResponseHeaders.cs (3)
38internal void CopyTo(ref BufferWriter<PipeWriter> buffer) 57static void CopyExtraHeaders(ref BufferWriter<PipeWriter> buffer, Dictionary<string, StringValues> headers) 74static void CopyExtraHeadersCustomEncoding(ref BufferWriter<PipeWriter> buffer, Dictionary<string, StringValues> headers,
Internal\Http2\Http2Connection.cs (1)
1850private async Task CopyPipeAsync(PipeReader reader, PipeWriter writer)
Internal\Http2\Http2FrameWriter.cs (2)
110PipeWriter outputPipeWriter, 1029internal static void WriteHeader(Http2Frame frame, PipeWriter output)
Internal\Http3\Http3FrameWriter.cs (3)
45private PipeWriter _outputWriter = default!; 81public void Reset(PipeWriter output, string connectionId) 279internal static int WriteHeader(Http3FrameType frameType, long frameLength, PipeWriter output)
Internal\Http3\Http3OutputProducer.cs (1)
25private readonly PipeWriter _pipeWriter;
Internal\Infrastructure\BodyControl.cs (1)
58public (Stream request, Stream response, PipeReader reader, PipeWriter writer) Start(MessageBody body)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (2)
25private readonly PipeWriter _innerPipeWriter; 53public ConcurrentPipeWriter(PipeWriter innerPipeWriter, MemoryPool<byte> pool, Lock sync)
Internal\Infrastructure\PipeWriterHelpers\TimingPipeFlusher.cs (2)
19private PipeWriter _writer = default!; 31public void Initialize(PipeWriter output)
Internal\Infrastructure\StatusCheckPipeWriter.cs (2)
14private readonly PipeWriter _inner; 17public StatusCheckPipeWriter(PipeWriter inner)
Internal\Infrastructure\WrappingPipeWriter.cs (3)
10private PipeWriter _inner; 12public WrappingPipeWriter(PipeWriter inner) 17public void SetInnerPipe(PipeWriter inner)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
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) 29public PipeWriter Output { get; }
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (47)
BufferWriterTests.cs (22)
44BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer); 77BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer); 94BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer); 108BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer); 120BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer); 135BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer); 150BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer); 161BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer); 171BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer); 185BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer); 221BufferWriter<PipeWriter> writer = new BufferWriter<PipeWriter>(Pipe.Writer);
Http1\Http1ConnectionTests.cs (2)
718var writer = _application.Output; 732var writer = _application.Output;
HttpConnectionTests.cs (1)
28transport: new DuplexPipe(Mock.Of<PipeReader>(), Mock.Of<PipeWriter>()));
PipelineExtensionTests.cs (14)
39var writerBuffer = _pipe.Writer; 40var writer = new BufferWriter<PipeWriter>(writerBuffer); 56var writerBuffer = _pipe.Writer; 57var writer = new BufferWriter<PipeWriter>(writerBuffer); 76var writerBuffer = _pipe.Writer; 77var writer = new BufferWriter<PipeWriter>(writerBuffer); 107var pipeWriter = _pipe.Writer; 108var writer = new BufferWriter<PipeWriter>(pipeWriter); 137var writerBuffer = _pipe.Writer; 138var writer = new BufferWriter<PipeWriter>(writerBuffer); 151var writerBuffer = _pipe.Writer; 152var writer = new BufferWriter<PipeWriter>(writerBuffer); 180var writerBuffer = _pipe.Writer; 181var writer = new BufferWriter<PipeWriter>(writerBuffer);
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (3)
37public PipeWriter Output { get; } 41private readonly PipeWriter _output; 43public PassThroughPipeWriter(PipeWriter output)
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (5)
19public static void WriteSettings(this PipeWriter writer, Http2PeerSettings clientSettings) 31public static void WriteStartStream(this PipeWriter writer, int streamId, DynamicHPackEncoder hpackEncoder, Http2HeadersEnumerator headers, byte[] headerEncodingBuffer, bool endStream, Http2Frame frame = null) 70public static void WriteStartStream(this PipeWriter writer, int streamId, Span<byte> headerData, bool endStream, Http2Frame frame = null) 86public static void WriteData(this PipeWriter writer, int streamId, Memory<byte> data, bool endStream, Http2Frame frame = null) 97public static void WriteWindowUpdateAsync(this PipeWriter writer, int streamId, int sizeIncrement, Http2Frame frame = null)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (20)
ChunkWriterBenchmark.cs (2)
17private PipeWriter _writer; 46var writer = new BufferWriter<PipeWriter>(_writer);
InMemoryTransportBenchmark.cs (1)
182public PipeWriter Input => Application.Output;
Mocks\MockDuplexPipe.cs (2)
10public MockDuplexPipe(PipeReader input, PipeWriter output) 17public PipeWriter Output { get; }
ResponseHeadersWritingBenchmark.cs (6)
75var writer = new BufferWriter<PipeWriter>(_writer); 88var writer = new BufferWriter<PipeWriter>(_writer); 105var writer = new BufferWriter<PipeWriter>(_writer); 139var writer = new BufferWriter<PipeWriter>(_writer); 154var writer = new BufferWriter<PipeWriter>(_writer); 169var writer = new BufferWriter<PipeWriter>(_writer);
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (2)
12private readonly PipeWriter _inner; 18public CompletionPipeWriter(PipeWriter inner)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
514protected static Task FlushAsync(PipeWriter writableBuffer) 872void WriteSpan(PipeWriter pw)
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (5)
19public static void WriteSettings(this PipeWriter writer, Http2PeerSettings clientSettings) 31public static void WriteStartStream(this PipeWriter writer, int streamId, DynamicHPackEncoder hpackEncoder, Http2HeadersEnumerator headers, byte[] headerEncodingBuffer, bool endStream, Http2Frame frame = null) 70public static void WriteStartStream(this PipeWriter writer, int streamId, Span<byte> headerData, bool endStream, Http2Frame frame = null) 86public static void WriteData(this PipeWriter writer, int streamId, Memory<byte> data, bool endStream, Http2Frame frame = null) 97public static void WriteWindowUpdateAsync(this PipeWriter writer, int streamId, int sizeIncrement, Http2Frame frame = null)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (5)
Internal\NamedPipeConnection.cs (2)
58public PipeWriter Input => Application.Output; 83var input = 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) 29public PipeWriter Output { get; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (7)
Internal\QuicStreamContext.cs (2)
74private PipeWriter Input => Application.Output; 210var input = Input;
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (2)
12private readonly PipeWriter _inner; 18public CompletionPipeWriter(PipeWriter 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) 29public PipeWriter Output { get; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (4)
Internal\SocketConnection.cs (1)
71public PipeWriter Input => Application.Output;
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) 29public PipeWriter Output { get; }
Microsoft.AspNetCore.Shared.Tests (14)
src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32public static void CopyTo(in this ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 44private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer, PipeWriter pipeWriter) 110internal static void WriteAscii(ref this BufferWriter<PipeWriter> buffer, string data) 132internal static void WriteNumeric(ref this BufferWriter<PipeWriter> bufferWriter, ulong number) 171private static void WriteNumericMultiWrite(ref this BufferWriter<PipeWriter> buffer, ulong number) 191internal static void WriteEncoded(ref this BufferWriter<PipeWriter> buffer, string data, Encoding encoding) 213private static void WriteEncodedMultiWrite(ref this BufferWriter<PipeWriter> buffer, string data, int encodedLength, Encoding encoding)
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) 29public PipeWriter Output { get; }
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
Microsoft.AspNetCore.SignalR.Client.Core (4)
src\SignalR\common\Shared\MessageBuffer.cs (2)
41private PipeWriter _writer; 248internal async Task ResendAsync(PipeWriter writer)
src\SignalR\common\Shared\PipeWriterStream.cs (2)
14private readonly PipeWriter _pipeWriter; 16public PipeWriterStream(PipeWriter pipeWriter)
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HubConnectionTests.cs (1)
1040public void OnReconnected(Func<PipeWriter, Task> notifyOnReconnected) { }
TestTransport.cs (1)
27public PipeWriter Output => _transport.Output;
Microsoft.AspNetCore.SignalR.Core (2)
src\SignalR\common\Shared\MessageBuffer.cs (2)
41private PipeWriter _writer; 248internal async Task ResendAsync(PipeWriter writer)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Shared\TestDuplexPipe.cs (1)
14public PipeWriter Output { get; }
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 16public PipeWriter Output { get; }
Microsoft.AspNetCore.SignalR.Tests (8)
EndToEndTests.cs (1)
709public PipeWriter Output => _transport.Output;
HubConnectionHandlerTests.cs (5)
3001public PipeWriter Output => _originalDuplexPipe.Output; 5229public void OnReconnected(Func<PipeWriter, Task> notifyOnReconnect) { } 5337private Func<PipeWriter, Task> _notifyOnReconnect; 5341public Task NotifyOnReconnect(PipeWriter writer) 5347public void OnReconnected(Func<PipeWriter, Task> notifyOnReconnect)
Internal\MessageBufferTests.cs (2)
508public DuplexPipe(PipeReader reader, PipeWriter writer) 516public PipeWriter Output { get; }
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 16public PipeWriter Output { get; }
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
81public PipeWriter Writer => _original.Writer;
Microsoft.AspNetCore.TestHost (4)
HttpContextBuilder.cs (2)
28private Func<PipeWriter, Task>? _sendRequestStream; 68internal void SendRequestStream(Func<PipeWriter, Task> sendRequestStream)
ResponseFeature.cs (2)
68internal PipeWriter BodyWriter { get; set; } = default!; 70public PipeWriter Writer => BodyWriter;
Microsoft.AspNetCore.TestHost.Tests (2)
ResponseBodyTests.cs (2)
21var writer = httpContext.Response.BodyWriter; 39var writer = httpContext.Response.BodyWriter;
Microsoft.AspNetCore.WebUtilities (3)
FileBufferingWriteStream.cs (2)
217/// <param name="destination">The <see cref="PipeWriter" /> to drain buffered contents to.</param> 221public async Task DrainBufferAsync(PipeWriter destination, CancellationToken cancellationToken = default)
PagedByteBuffer.cs (1)
81public async Task MoveToAsync(PipeWriter writer, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Remote.Workspaces (10)
ISolutionAssetProvider.cs (2)
23/// cref="PipeWriter.Complete"/> on it (in the event of failure or success). Failing to do so will lead to hangs on 29PipeWriter pipeWriter, Checksum solutionChecksum, AssetPath assetPath, ReadOnlyMemory<Checksum> checksums, CancellationToken cancellationToken);
RemoteCallback.cs (4)
96/// cref="PipeWriter.Complete"/> the <see cref="PipeWriter"/>. If it does not then reading will hang</param> 101Func<T, PipeWriter, CancellationToken, ValueTask> invocation, 130async Task WriteAsync(T service, PipeWriter pipeWriter)
RemoteHostAssetWriter.cs (2)
54PipeWriter pipeWriter, Scope scope, AssetPath assetPath, ReadOnlyMemory<Checksum> checksums, ISerializerService serializer) 65private readonly PipeWriter _pipeWriter = pipeWriter;
SolutionAssetProvider.cs (2)
28PipeWriter pipeWriter, 44async ValueTask WriteAssetsSuppressedFlowAsync(PipeWriter pipeWriter, Checksum solutionChecksum, AssetPath assetPath, ReadOnlyMemory<Checksum> checksums, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Checksum.cs (1)
92public void WriteTo(PipeWriter pipeWriter)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Remote\ServiceDescriptorTests.cs (1)
137type != typeof(PipeWriter))
Sockets.FunctionalTests (4)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (3)
37public PipeWriter Output { get; } 41private readonly PipeWriter _output; 43public PassThroughPipeWriter(PipeWriter output)
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (1)
86public PipeWriter Output => new MockPipeWriter(this);
System.IO.Pipelines (62)
System\IO\Pipelines\FlushResult.cs (10)
6/// <summary>Result returned by <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> call.</summary> 12/// <param name="isCanceled"><see langword="true" /> to indicate the current <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> operation that produced this <see cref="System.IO.Pipelines.FlushResult" /> was canceled by <see cref="System.IO.Pipelines.PipeWriter.CancelPendingFlush" />; otherwise, <see langword="false" />.</param> 13/// <param name="isCompleted"><see langword="true" /> to indicate the reader is no longer reading data written to the <see cref="System.IO.Pipelines.PipeWriter" />.</param> 29/// <summary>Gets a value that indicates whether the current <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> operation was canceled by <see cref="System.IO.Pipelines.PipeWriter.CancelPendingFlush" />.</summary> 30/// <value><see langword="true" /> if the current <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> operation was canceled by <see cref="System.IO.Pipelines.PipeWriter.CancelPendingFlush" />; otherwise, <see langword="false" />.</value> 33/// <summary>Gets a value that indicates the reader is no longer reading data written to the <see cref="System.IO.Pipelines.PipeWriter" />.</summary> 34/// <value><see langword="true" /> if the reader is no longer reading data written to the <see cref="System.IO.Pipelines.PipeWriter" />; otherwise, <see langword="false" />.</value>
System\IO\Pipelines\IDuplexPipe.cs (2)
12/// <summary>Gets the <see cref="System.IO.Pipelines.PipeWriter" /> half of the duplex pipe.</summary> 13PipeWriter Output { 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> 1168/// <summary>Gets the <see cref="System.IO.Pipelines.PipeWriter" /> for this pipe.</summary> 1169/// <value>A <see cref="System.IO.Pipelines.PipeWriter" /> instance for this pipe.</value> 1170public PipeWriter Writer => _writer;
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 (10)
21/// <param name="writerScheduler">The <see cref="System.IO.Pipelines.PipeScheduler" /> used to execute <see cref="System.IO.Pipelines.PipeWriter" /> callbacks and async continuations.</param> 22/// <param name="pauseWriterThreshold">The number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> before <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> starts blocking. A value of zero prevents <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> from ever blocking, effectively making the number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> unlimited.</param> 23/// <param name="resumeWriterThreshold">The number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> when <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> stops blocking.</param> 92/// <summary>Gets the number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> when <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> starts blocking.</summary> 93/// <value>The number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> when <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> starts blocking.</value> 96/// <summary>Gets the number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> when <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> stops blocking.</summary> 97/// <value>The number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> when <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> stops blocking.</value> 104/// <summary>Gets the <see cref="System.IO.Pipelines.PipeScheduler" /> used to execute <see cref="System.IO.Pipelines.PipeWriter" /> callbacks and async continuations.</summary> 105/// <value>A <see cref="System.IO.Pipelines.PipeScheduler" /> object used to execute <see cref="System.IO.Pipelines.PipeWriter" /> callbacks and async continuations.</value>
System\IO\Pipelines\PipeReader.cs (3)
141/// <summary>Registers a callback that executes when the <see cref="System.IO.Pipelines.PipeWriter" /> side of the pipe is completed.</summary> 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> 177public virtual Task CopyToAsync(PipeWriter destination, CancellationToken cancellationToken = default)
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 (20)
15/// <summary>Marks the <see cref="System.IO.Pipelines.PipeWriter" /> as being complete, meaning no more items will be written to it.</summary> 35/// <summary>Cancels the pending <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> or <see cref="System.IO.Pipelines.PipeWriter.WriteAsync(System.ReadOnlyMemory{byte},System.Threading.CancellationToken)" /> operation without causing the operation to throw and without completing the <see cref="System.IO.Pipelines.PipeWriter" />. If there is no pending operation, this cancels the next operation.</summary> 36/// <remarks>The canceled <see cref="System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> or <see cref="System.IO.Pipelines.PipeWriter.WriteAsync(System.ReadOnlyMemory{byte},System.Threading.CancellationToken)" /> operation returns a <see cref="System.IO.Pipelines.FlushResult" /> where <see cref="System.IO.Pipelines.FlushResult.IsCanceled" /> is <see langword="true" />.</remarks> 39/// <summary>Gets a value that indicates whether the current <see cref="System.IO.Pipelines.PipeWriter" /> supports reporting the count of unflushed bytes.</summary> 40/// <value><see langword="true" />If a class derived from <see cref="System.IO.Pipelines.PipeWriter" /> does not support getting the unflushed bytes, calls to <see cref="System.IO.Pipelines.PipeWriter.UnflushedBytes" /> throw <see cref="System.NotImplementedException" />.</value> 61/// <summary>Notifies the <see cref="System.IO.Pipelines.PipeWriter" /> that <paramref name="bytes" /> bytes were written to the output <see cref="System.Span{T}" /> or <see cref="System.Memory{T}" />. You must request a new buffer after calling <see cref="System.IO.Pipelines.PipeWriter.Advance(int)" /> to continue writing more data; you cannot write to a previously acquired buffer.</summary> 70/// You must request a new buffer after calling <see cref="System.IO.Pipelines.PipeWriter.Advance" /> to continue writing more data; you cannot write to a previously acquired buffer.</remarks> 79/// You must request a new buffer after calling <see cref="System.IO.Pipelines.PipeWriter.Advance(int)" /> to continue writing more data; you cannot write to a previously acquired buffer.</remarks> 83/// <summary>Returns a <see cref="System.IO.Stream" /> representation of the <see cref="System.IO.Pipelines.PipeWriter" />.</summary> 85/// <returns>A stream that represents the <see cref="System.IO.Pipelines.PipeWriter" />.</returns> 100/// <summary>Creates a <see cref="System.IO.Pipelines.PipeWriter" /> wrapping the specified <see cref="System.IO.Stream" />.</summary> 103/// <returns>A <see cref="System.IO.Pipelines.PipeWriter" /> that wraps the <see cref="System.IO.Stream" />.</returns> 104public static PipeWriter Create(Stream stream, StreamPipeWriterOptions? writerOptions = null) 119/// <summary>Asynchronously reads the bytes from the specified stream and writes them to the <see cref="System.IO.Pipelines.PipeWriter" />.</summary> 154/// <exception cref="System.NotImplementedException">The <see cref="System.IO.Pipelines.PipeWriter"/> does not support getting the unflushed byte count.</exception>
System\IO\Pipelines\PipeWriterStream.cs (2)
12private readonly PipeWriter _pipeWriter; 14public PipeWriterStream(PipeWriter pipeWriter, bool leaveOpen)
System\IO\Pipelines\StreamPipeExtensions.cs (2)
12/// <summary>Asynchronously reads the bytes from the <see cref="System.IO.Stream" /> and writes them to the specified <see cref="System.IO.Pipelines.PipeWriter" />, using a cancellation token.</summary> 17public static Task CopyToAsync(this Stream source, PipeWriter destination, CancellationToken cancellationToken = default)
System\IO\Pipelines\StreamPipeReader.cs (1)
311public override async Task CopyToAsync(PipeWriter destination, CancellationToken cancellationToken = default)
System\IO\Pipelines\StreamPipeWriterOptions.cs (5)
8/// <summary>Represents a set of options for controlling the creation of the <see cref="System.IO.Pipelines.PipeWriter" />.</summary> 15/// <summary>Initializes a <see cref="System.IO.Pipelines.StreamPipeWriterOptions" /> instance, optionally specifying a memory pool, a minimum buffer size, and whether the underlying stream should be left open after the <see cref="System.IO.Pipelines.PipeWriter" /> completes.</summary> 18/// <param name="leaveOpen"><see langword="true" /> to leave the underlying stream open after the <see cref="System.IO.Pipelines.PipeWriter" /> completes; <see langword="false" /> to close it. The default is <see langword="false" />.</param> 39/// <summary>Gets the value that indicates if the underlying stream should be left open after the <see cref="System.IO.Pipelines.PipeWriter" /> completes.</summary> 40/// <value><see langword="true" /> if the underlying stream should be left open after the <see cref="System.IO.Pipelines.PipeWriter" /> completes; otherwise, <see langword="false" />.</value>
System.Text.Json (23)
System\Text\Json\Serialization\JsonSerializer.Write.Pipe.cs (15)
16/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.PipeWriter"/>. 19/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.PipeWriter"/> to write to.</param> 28PipeWriter utf8Json, 47/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.PipeWriter"/>. 50/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.PipeWriter"/> to write to.</param> 65PipeWriter utf8Json, 80/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.PipeWriter"/>. 82/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.PipeWriter"/> to write to.</param> 94PipeWriter utf8Json, 114/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.PipeWriter"/>. 116/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.PipeWriter"/> to write to.</param> 133PipeWriter utf8Json, 156/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.PipeWriter"/>. 158/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.PipeWriter"/> to write to.</param> 177PipeWriter utf8Json,
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1054internal abstract Task SerializeAsObjectAsync(PipeWriter pipeWriter, object? rootValue, int flushThreshold, CancellationToken cancellationToken); 1056internal abstract Task SerializeAsObjectAsync(PipeWriter utf8Json, object? rootValue, CancellationToken cancellationToken);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (4)
73internal Task SerializeAsync(PipeWriter utf8Json, 85PipeWriter pipeWriter, 334internal sealed override Task SerializeAsObjectAsync(PipeWriter pipeWriter, object? rootValue, int flushThreshold, CancellationToken cancellationToken) 340internal sealed override Task SerializeAsObjectAsync(PipeWriter utf8Json, object? rootValue, CancellationToken cancellationToken)
System\Text\Json\Serialization\WriteStack.cs (1)
92public PipeWriter? PipeWriter;
System\Text\Json\ThrowHelper.Serialization.cs (1)
943public static void ThrowInvalidOperationException_PipeWriterDoesNotImplementUnflushedBytes(PipeWriter pipeWriter)
WebTransportInteractiveSampleApp (1)
Program.cs (1)
116var outputPipe = stream.Transport.Output;