public sealed class AsyncStreamAdapter<T> : IAsyncStreamReader<T>
Simple adapter to allow an IAsyncEnumerator<T> to be used as a gRPC IAsyncStreamReader<T>.
Note that cancellation is not fully supported, due to differences between the two interfaces.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This webpage details the `AsyncStreamAdapter\u003cT\u003e` class, a utility for converting an `IAsyncEnumerator\u003cT\u003e` into a gRPC `IAsyncStreamReader\u003cT\u003e`."],["The `AsyncStreamAdapter\u003cT\u003e` class is a sealed class that implements the `IAsyncStreamReader` interface and inherits from `object`."],["The class provides a constructor `AsyncStreamAdapter(IAsyncEnumerator\u003cT\u003e)` for wrapping an async enumerator."],["Key methods include `MoveNext(CancellationToken)` for asynchronous iteration, and the property `Current` to retrieve the current element, where `T` represents the element type."],["While it provides conversion, it's important to note that the adapter does not fully support cancellation due to differences in the two interfaces it bridges."]]],[]]