<PackageReference Include="System.ClientModel" Version="1.3.0" />

AsyncCollectionResult<T>

Represents a collection of values returned from a cloud service operation. The collection values may be delivered over one or more service responses.
using System.ClientModel.Primitives; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; namespace System.ClientModel { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public abstract class AsyncCollectionResult<[System.Runtime.CompilerServices.Nullable(2)] T> : AsyncCollectionResult, IAsyncEnumerable<T> { protected internal AsyncCollectionResult() { } [AsyncIteratorStateMachine(typeof(AsyncCollectionResult<>.<GetAsyncEnumerator>d__1))] public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default(CancellationToken)) { <GetAsyncEnumerator>d__1 <GetAsyncEnumerator>d__ = new <GetAsyncEnumerator>d__1(-3); <GetAsyncEnumerator>d__.<>4__this = this; <GetAsyncEnumerator>d__.cancellationToken = cancellationToken; return <GetAsyncEnumerator>d__; } protected abstract IAsyncEnumerable<T> GetValuesFromPageAsync(ClientResult page); } }