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
Copy file name to clipboardExpand all lines: src/JSInterop/Microsoft.JSInterop/src/IJSStreamReference.cs
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,17 @@ public interface IJSStreamReference : IAsyncDisposable
22
22
/// Opens a <see cref="Stream"/> with the <see cref="JSRuntime"/> for the current data reference.
23
23
/// </summary>
24
24
/// <param name="maxAllowedSize">Maximum number of bytes permitted to be read from JavaScript.</param>
25
-
/// <param name="pauseIncomingBytesThreshold">The number of unconsumed bytes to accept from JS before blocking. A value of zero prevents JS from blocking, allowing .NET to receive an unlimited number of bytes.</param>
26
-
/// <param name="resumeIncomingBytesThreshold">The number of unflushed bytes at which point JS stops blocking.</param>
25
+
/// <param name="pauseIncomingBytesThreshold">
26
+
/// The number of unconsumed bytes to accept from JS before blocking.
27
+
/// Defaults to -1, which indicates use of the default <see cref="System.IO.Pipelines.PipeOptions.PauseWriterThreshold" />.
28
+
/// Avoid specifying an excessively large value because this could allow clients to exhaust memory.
29
+
/// A value of zero prevents JS from blocking, allowing .NET to receive an unlimited number of bytes.
30
+
/// </param>
31
+
/// <param name="resumeIncomingBytesThreshold">
32
+
/// The number of unflushed bytes at which point JS stops blocking.
33
+
/// Defaults to -1, which indicates use of the default <see cref="System.IO.Pipelines.PipeOptions.PauseWriterThreshold" />.
34
+
/// Must be less than the <paramref name="pauseIncomingBytesThreshold"/> to prevent thrashing at the limit.
35
+
/// </param>
27
36
/// <param name="cancellationToken"><see cref="CancellationToken" /> for cancelling read.</param>
28
37
/// <returns><see cref="Stream"/> which can provide data associated with the current data reference.</returns>
/// <param name="jsStreamReference"><see cref="IJSStreamReference"/> to produce a data stream for.</param>
217
217
/// <param name="totalLength">Expected length of the incoming data stream.</param>
218
-
/// <param name="pauseIncomingBytesThreshold">The number of unconsumed bytes to accept from JS before blocking. A value of zero prevents JS from blocking, allowing .NET to receive an unlimited number of bytes.</param>
219
-
/// <param name="resumeIncomingBytesThreshold">The number of unflushed bytes at which point JS stops blocking.</param>
218
+
/// <param name="pauseIncomingBytesThreshold">
219
+
/// The number of unconsumed bytes to accept from JS before blocking.
220
+
/// Defaults to -1, which indicates use of the default <see cref="System.IO.Pipelines.PipeOptions.PauseWriterThreshold" />.
221
+
/// Avoid specifying an excessively large value because this could allow clients to exhaust memory.
222
+
/// A value of zero prevents JS from blocking, allowing .NET to receive an unlimited number of bytes.
223
+
/// </param>
224
+
/// <param name="resumeIncomingBytesThreshold">
225
+
/// The number of unflushed bytes at which point JS stops blocking.
226
+
/// Defaults to -1, which indicates use of the default <see cref="System.IO.Pipelines.PipeOptions.PauseWriterThreshold" />.
227
+
/// Must be less than the <paramref name="pauseIncomingBytesThreshold"/> to prevent thrashing at the limit.
228
+
/// </param>
220
229
/// <param name="cancellationToken"><see cref="CancellationToken" /> for cancelling read.</param>
221
230
/// <returns><see cref="Stream"/> for the data reference represented by <paramref name="jsStreamReference"/>.</returns>
virtual Microsoft.JSInterop.JSRuntime.ReadJSDataAsStreamAsync(Microsoft.JSInterop.IJSStreamReference! jsStreamReference, long totalLength, long pauseIncomingBytesThreshold, long resumeIncomingBytesThreshold, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<System.IO.Stream!>!
39
+
virtual Microsoft.JSInterop.JSRuntime.ReadJSDataAsStreamAsync(Microsoft.JSInterop.IJSStreamReference! jsStreamReference, long totalLength, long pauseIncomingBytesThreshold = -1, long resumeIncomingBytesThreshold = -1, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<System.IO.Stream!>!
0 commit comments