11 types derived from PipeWriter
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.Transport.Quic (1)
src\aspnetcore\src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
10internal sealed class CompletionPipeWriter : PipeWriter
Microsoft.AspNetCore.TestHost (1)
ResponseBodyPipeWriter.cs (1)
9internal sealed class ResponseBodyPipeWriter : PipeWriter
Microsoft.Extensions.Logging.Console (1)
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
13internal sealed class PooledByteBufferWriter : PipeWriter, IDisposable
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\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
13internal sealed class PooledByteBufferWriter : PipeWriter, IDisposable
258 references to PipeWriter
Aspire.Hosting.Browsers.Tests (1)
BrowserLogsCdpConnectionTests.cs (1)
566private sealed class DuplexPipeStream(PipeReader reader, PipeWriter writer) : Stream
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)
75internal Func<PipeWriter, Task>? NotifyOnReconnect { get; set; } 1103public void OnReconnected(Func<PipeWriter, Task> notifyOnReconnect)
src\aspnetcore\src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 16public PipeWriter Output { get; }
src\aspnetcore\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\aspnetcore\src\SignalR\common\Shared\DuplexPipe.cs (2)
8public DuplexPipe(PipeReader reader, PipeWriter writer) 16public PipeWriter Output { get; }
src\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (2)
14private readonly PipeWriter _pipeWriter; 16public PipeWriterStream(PipeWriter pipeWriter)
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.Features (2)
IHttpResponseBodyFeature.cs (2)
19/// A <see cref="PipeWriter"/> representing the response body, if any. 21PipeWriter Writer { get; }
Microsoft.AspNetCore.HttpLogging (3)
ResponseBufferingStream.cs (3)
17private PipeWriter? _pipeAdapter; 89public 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.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.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
206async 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.ResponseCompression (3)
ResponseCompressionBody.cs (3)
25private PipeWriter? _pipeAdapter; 86public PipeWriter Writer 92_pipeAdapter = PipeWriter.Create(Stream, new StreamPipeWriterOptions(leaveOpen: true));
Microsoft.AspNetCore.Server.HttpSys (3)
RequestProcessing\RequestContext.FeatureCollection.cs (3)
68private PipeWriter? _pipeWriter; 469PipeWriter IHttpResponseBodyFeature.Writer 475_pipeWriter = PipeWriter.Create(_responseStream, new StreamPipeWriterOptions(leaveOpen: true));
Microsoft.AspNetCore.Server.IIS (20)
Core\IISHttpContext.cs (1)
120public PipeWriter? ResponsePipeWrapper { get; set; }
Core\IISHttpContext.FeatureCollection.cs (2)
195PipeWriter IHttpResponseBodyFeature.Writer 201ResponsePipeWrapper = 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\aspnetcore\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\aspnetcore\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\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
Microsoft.AspNetCore.Server.Kestrel.Core (56)
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)
207private bool Read(ReadOnlySequence<byte> readableBuffer, PipeWriter writableBuffer, out SequencePosition consumed, out SequencePosition examined) 427private void ReadChunkedData(in ReadOnlySequence<byte> buffer, PipeWriter writableBuffer, out SequencePosition consumed, out SequencePosition examined)
Internal\Http\Http1Connection.cs (1)
1148var output = _context.Transport.Output;
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, ResponseBodyMode responseBodyMode) 371private void WriteDataWrittenBeforeHeaders(ref BufferWriter<PipeWriter> writer) 507var writer = new BufferWriter<PipeWriter>(_pipeWriter); 527var writer = new BufferWriter<PipeWriter>(_pipeWriter); 564var writer = new BufferWriter<PipeWriter>(_pipeWriter); 570ref BufferWriter<PipeWriter> writer, 620var writer = new BufferWriter<PipeWriter>(_pipeWriter); 646private void WriteCurrentChunkMemoryToPipeWriter(ref BufferWriter<PipeWriter> writer)
Internal\Http\HttpHeaders.Generated.cs (1)
14809internal void CopyToFast(ref BufferWriter<PipeWriter> output)
Internal\Http\HttpProtocol.cs (1)
292public 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)
1890private 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\aspnetcore\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\aspnetcore\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\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20private readonly PipeWriter _output; 24public DuplexPipeStream(PipeReader input, PipeWriter output, bool throwOnCancelled = false)
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31Output = PipeWriter.Create(stream, writerOptions); 38public PipeWriter Output { get; }
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (5)
Internal\NamedPipeConnection.cs (2)
58public PipeWriter Input => Application.Output; 83var input = Input;
src\aspnetcore\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; 212var input = Input;
src\aspnetcore\src\Servers\Kestrel\shared\CompletionPipeWriter.cs (2)
12private readonly PipeWriter _inner; 18public CompletionPipeWriter(PipeWriter inner)
src\aspnetcore\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)
73public PipeWriter Input => Application.Output;
src\aspnetcore\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.SignalR.Client.Core (4)
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (2)
42private PipeWriter _writer; 256internal async Task ResendAsync(PipeWriter writer)
src\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (2)
14private readonly PipeWriter _pipeWriter; 16public PipeWriterStream(PipeWriter pipeWriter)
Microsoft.AspNetCore.SignalR.Core (2)
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (2)
42private PipeWriter _writer; 256internal async Task ResendAsync(PipeWriter writer)
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\aspnetcore\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)
162public 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.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.Workspaces (1)
Workspace\Solution\Checksum.cs (1)
92public void WriteTo(PipeWriter pipeWriter)
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpResponseBodyReader.cs (2)
132private static async ValueTask<string> BufferStreamAndWriteToPipeAsync(Stream stream, PipeWriter writer, int bufferSize, CancellationToken cancellationToken) 148private static async Task WriteStreamToPipeAsync(Stream stream, PipeWriter writer, CancellationToken cancellationToken)
System.IO.Pipelines (64)
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)
15/// <summary>The default <see cref="System.IO.Pipelines.PipeWriter" /> and <see cref="System.IO.Pipelines.PipeReader" /> implementation.</summary> 1279/// <summary>Gets the <see cref="System.IO.Pipelines.PipeWriter" /> for this pipe.</summary> 1280/// <value>A <see cref="System.IO.Pipelines.PipeWriter" /> instance for this pipe.</value> 1281public 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> 97/// <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> 98/// <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> 101/// <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> 102/// <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> 109/// <summary>Gets the <see cref="System.IO.Pipelines.PipeScheduler" /> used to execute <see cref="System.IO.Pipelines.PipeWriter" /> callbacks and async continuations.</summary> 110/// <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 (22)
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> 84/// <param name="leaveOpen">An optional flag that indicates whether disposing the returned <see cref="System.IO.Stream" /> leaves <see cref="System.IO.Pipelines.PipeWriter" /> open (<see langword="true" />) or completes <see cref="System.IO.Pipelines.PipeWriter" /> (<see langword="false" />).</param> 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)
309public 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 (31)
System\Text\Json\Serialization\JsonSerializer.Write.Pipe.cs (22)
18/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.PipeWriter"/>. 21/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.PipeWriter"/> to write to.</param> 30PipeWriter utf8Json, 43/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.PipeWriter"/>. 46/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.PipeWriter"/> to write to.</param> 61PipeWriter utf8Json, 73/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.PipeWriter"/>. 75/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.PipeWriter"/> to write to.</param> 87PipeWriter utf8Json, 100/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.PipeWriter"/>. 102/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.PipeWriter"/> to write to.</param> 119PipeWriter utf8Json, 135/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.PipeWriter"/>. 137/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.PipeWriter"/> to write to.</param> 156PipeWriter utf8Json, 171/// Serializes each element of an <see cref="IAsyncEnumerable{TValue}"/> to the <see cref="PipeWriter"/> 175/// <param name="utf8Json">The <see cref="PipeWriter"/> to write to.</param> 195PipeWriter utf8Json, 215/// Serializes each element of an <see cref="IAsyncEnumerable{TValue}"/> to the <see cref="PipeWriter"/> 219/// <param name="utf8Json">The <see cref="PipeWriter"/> to write to.</param> 237PipeWriter utf8Json, 258PipeWriter utf8Json,
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1477internal abstract Task<FlushResult> SerializeAsObjectAsync(PipeWriter pipeWriter, object? rootValue, int flushThreshold, CancellationToken cancellationToken, Utf8JsonWriter? jsonLineWriter = null); 1479internal abstract Task SerializeAsObjectAsync(PipeWriter utf8Json, object? rootValue, CancellationToken cancellationToken);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (5)
74internal Task SerializeAsync(PipeWriter utf8Json, 86PipeWriter pipeWriter, 270static void WriteJsonLineTerminator(PipeWriter pipeWriter) 371internal sealed override Task<FlushResult> SerializeAsObjectAsync(PipeWriter pipeWriter, object? rootValue, int flushThreshold, CancellationToken cancellationToken, Utf8JsonWriter? jsonLineWriter = null) 377internal sealed override Task SerializeAsObjectAsync(PipeWriter utf8Json, object? rootValue, CancellationToken cancellationToken)
System\Text\Json\Serialization\WriteStack.cs (1)
86public PipeWriter? PipeWriter;
System\Text\Json\ThrowHelper.Serialization.cs (1)
1160public static void ThrowInvalidOperationException_PipeWriterDoesNotImplementUnflushedBytes(PipeWriter pipeWriter)