You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<paramname="leaveOpen">An optional flag that indicates whether disposing the returned <seecref="T:System.IO.Stream"/> leaves <seecref="T:System.IO.Pipelines.PipeReader" /> open (<seelangword="true" />) or completes <seecref="T:System.IO.Pipelines.PipeReader" /> (<seelangword="false" />).</param>
118
+
<summary>Returns the underlying <seecref="T:System.IO.Stream" /> wrapped by the <seecref="T:System.IO.Pipelines.PipeReader" />.</summary>
<paramname="cancellationToken">To be added.</param>
190
-
<summary>To be added.</summary>
191
-
<returns>To be added.</returns>
188
+
<paramname="destination">The pipe writer to which the contents of the current stream will be copied.</param>
189
+
<paramname="cancellationToken">The token to monitor for cancellation requests. The default value is <seecref="P:System.Threading.CancellationToken.None" />.</param>
190
+
<summary>Asynchronously reads the bytes from the <seecref="T:System.IO.Pipelines.PipeReader" /> and writes them to the specified <seecref="T:System.IO.Pipelines.PipeWriter" />, using a specified buffer size and cancellation token.</summary>
191
+
<returns>A task that represents the asynchronous copy operation.</returns>
192
192
<remarks>To be added.</remarks>
193
193
</Docs>
194
194
</Member>
@@ -264,10 +264,19 @@
264
264
<ParameterName="state"Type="System.Object" />
265
265
</Parameters>
266
266
<Docs>
267
-
<paramname="callback">To be added.</param>
268
-
<paramname="state">To be added.</param>
269
-
<summary>Cancels the pending <seecref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation. If there is none, cancels next <seecref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation, without completing the <seecref="T:System.IO.Pipelines.PipeWriter" />.</summary>
270
-
<remarks>To be added.</remarks>
267
+
<paramname="callback">The callback to register.</param>
268
+
<paramname="state">The state object to pass to <paramrefname="callback" /> when it's invoked.</param>
269
+
<summary>Registers a callback that executes when the <seecref="T:System.IO.Pipelines.PipeWriter" /> side of the pipe is completed.</summary>
270
+
<remarks>
271
+
<formattype="text/markdown"><![CDATA[
272
+
273
+
## Remarks
274
+
275
+
> [!IMPORTANT]
276
+
> `OnWriterCompleted` may not be invoked on all implementations of <xref:System.IO.Pipelines.PipeWriter>. This method will be removed in a future release.
<paramname="leaveOpen">An optional flag that indicates whether disposing the returned <seecref="T:System.IO.Stream"/> leaves <seecref="T:System.IO.Pipelines.PipeReader" /> open (<seelangword="true" />) or completes <seecref="T:System.IO.Pipelines.PipeReader" /> (<seelangword="false" />).</param>
95
+
<summary> Returns the underlying <seecref="T:System.IO.Stream" /> wrapped by the <seecref="T:System.IO.Pipelines.PipeWriter" />.</summary>
<paramname="cancellationToken">To be added.</param>
216
+
<paramname="cancellationToken">The token to monitor for cancellation requests. The default value is <seecref="T:System.Threading.CancellationToken.None"/>.</param>
217
217
<summary>Makes bytes written available to <seecref="T:System.IO.Pipelines.PipeReader" /> and runs <seecref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> continuation.</summary>
218
-
<returns>To be added.</returns>
218
+
<returns>A task that represents and wraps the asynchronous flush operation.</returns>
219
219
<remarks>To be added.</remarks>
220
220
</Docs>
221
221
</Member>
@@ -323,10 +323,19 @@ You must request a new buffer after calling <xref:System.IO.Pipelines.PipeWriter
323
323
<ParameterName="state"Type="System.Object" />
324
324
</Parameters>
325
325
<Docs>
326
-
<paramname="callback">To be added.</param>
327
-
<paramname="state">To be added.</param>
328
-
<summary>Registers a callback that gets executed when the <seecref="T:System.IO.Pipelines.PipeReader" /> side of the pipe is completed.</summary>
329
-
<remarks>To be added.</remarks>
326
+
<paramname="callback">The callback to register.</param>
327
+
<paramname="state">The state object to pass to <paramrefname="callback" /> when it's invoked.</param>
328
+
<summary>Registers a callback that executes when the <seecref="T:System.IO.Pipelines.PipeReader" /> side of the pipe is completed.</summary>
329
+
<remarks>
330
+
<formattype="text/markdown"><![CDATA[
331
+
332
+
## Remarks
333
+
334
+
> [!IMPORTANT]
335
+
> `OnReaderCompleted` may not be invoked on all implementations of <xref:System.IO.Pipelines.PipeWriter>. This method will be removed in a future release.
336
+
337
+
]]></format>
338
+
</remarks>
330
339
</Docs>
331
340
</Member>
332
341
<MemberMemberName="WriteAsync">
@@ -349,12 +358,12 @@ You must request a new buffer after calling <xref:System.IO.Pipelines.PipeWriter
<paramname="cancellationToken">To be added.</param>
354
-
<summary>Writes <paramrefname="source" /> to the pipe and makes data accessible to <seecref="T:System.IO.Pipelines.PipeReader" /></summary>
355
-
<returns>To be added.</returns>
361
+
<paramname="source">The read-only byte memory region to write.</param>
362
+
<paramname="cancellationToken">The token to monitor for cancellation requests. The default value is <seecref="T:System.Threading.CancellationToken.None"/>.</param>
363
+
<summary>Writes the specified byte memory range to the pipe and makes data accessible to the <seecref="T:System.IO.Pipelines.PipeReader" />.</summary>
364
+
<returns>A task that represents the asynchronous write operation, and wraps the flush asynchronous operation.</returns>
<paramname="pool">The memory pool to use when allocating memory. The default value is <seelangword="null" />.</param>
40
+
<paramname="bufferSize">The minimum buffer size to use when renting memory from the <paramrefname="pool" />. The default value is 4096.</param>
41
+
<paramname="minimumReadSize">The threshold of remaining bytes in the buffer before a new buffer is allocated. The default value is 1024.</param>
42
+
<paramname="leaveOpen"><seelangword="true" /> to leave the underlying stream open after the <seecref="T:System.IO.Pipelines.PipeReader" /> completes; <seelangword="false" /> to close it. The default is <seelangword="false" />.</param>
43
+
<summary>Initializes a <seecref="T: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 <seecref="T:System.IO.Pipelines.PipeReader" /> completes.</summary>
44
44
<remarks>To be added.</remarks>
45
45
</Docs>
46
46
</Member>
@@ -81,8 +81,8 @@
81
81
<ReturnType>System.Boolean</ReturnType>
82
82
</ReturnValue>
83
83
<Docs>
84
-
<summary>To be added.</summary>
85
-
<value>To be added.</value>
84
+
<summary>Gets the value that indicates if the underlying stream should be left open after the <seecref="T:System.IO.Pipelines.PipeReader" /> completes.</summary>
85
+
<value><seelangword="true" /> if the underlying stream should be left open after the <seecref="T:System.IO.Pipelines.PipeReader" /> completes; otherwise, <seelangword="false" />.</value>
<paramname="minimumBufferSize">To be added.</param>
40
-
<paramname="leaveOpen">To be added.</param>
41
-
<summary>To be added.</summary>
38
+
<paramname="pool">The memory pool to use when allocating memory. The default value is <seelangword="null" />.</param>
39
+
<paramname="minimumBufferSize">The minimum buffer size to use when renting memory from the <paramrefname="pool" />. The default value is 4096.</param>
40
+
<paramname="leaveOpen"><seelangword="true" /> to leave the underlying stream open after the <seecref="T:System.IO.Pipelines.PipeWriter" /> completes; <seelangword="false" /> to close it. The default is <seelangword="false" />.</param>
41
+
<summary>Initializes a <seecref="T: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 <seecref="T:System.IO.Pipelines.PipeWriter" /> completes.</summary>
42
42
<remarks>To be added.</remarks>
43
43
</Docs>
44
44
</Member>
@@ -58,8 +58,8 @@
58
58
<ReturnType>System.Boolean</ReturnType>
59
59
</ReturnValue>
60
60
<Docs>
61
-
<summary>To be added.</summary>
62
-
<value>To be added.</value>
61
+
<summary>Gets the value that indicates if the underlying stream should be left open after the <seecref="T:System.IO.Pipelines.PipeWriter" /> completes.</summary>
62
+
<value><seelangword="true" /> if the underlying stream should be left open after the <seecref="T:System.IO.Pipelines.PipeWriter" /> completes; otherwise, <seelangword="false" />.</value>
0 commit comments