public override async ValueTask <Page <BlobContainerItem> > GetNextPageAsync( string continuationToken, int?pageSizeHint, bool async, CancellationToken cancellationToken) { Response <ListContainersSegmentResponse> response; if (async) { response = await _client.GetBlobContainersInternal( continuationToken : continuationToken, traits : _traits, states : _states, prefix : _prefix, pageSizeHint : pageSizeHint, async : async, cancellationToken : cancellationToken) .ConfigureAwait(false); } else { response = _client.GetBlobContainersInternal( continuationToken: continuationToken, traits: _traits, states: _states, prefix: _prefix, pageSizeHint: pageSizeHint, async: async, cancellationToken: cancellationToken) .EnsureCompleted(); } return(Page <BlobContainerItem> .FromValues( response.Value.ContainerItems.ToBlobContainerItems(), response.Value.NextMarker, response.GetRawResponse())); }
public override async ValueTask <Page <BlobContainerItem> > GetNextPageAsync( string continuationToken, int?pageSizeHint, bool async, CancellationToken cancellationToken) { Response <BlobContainersSegment> response = await _client.GetBlobContainersInternal( continuationToken, _traits, _prefix, pageSizeHint, async, cancellationToken).ConfigureAwait(false); return(Page <BlobContainerItem> .FromValues( response.Value.BlobContainerItems.ToArray(), response.Value.NextMarker, response.GetRawResponse())); }
public override async ValueTask <Page <BlobContainerItem> > GetNextPageAsync( string continuationToken, int?pageSizeHint, bool isAsync, CancellationToken cancellationToken) { Task <Response <BlobContainersSegment> > task = _client.GetBlobContainersInternal( continuationToken, _traits, _prefix, pageSizeHint, isAsync, cancellationToken); Response <BlobContainersSegment> response = isAsync ? await task.ConfigureAwait(false) : task.EnsureCompleted(); return(new Page <BlobContainerItem>( response.Value.BlobContainerItems.ToArray(), response.Value.NextMarker, response.GetRawResponse())); }