sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/OperationsQueue.cs
/// <summary>
/// Gets the next page of results in a search for operations in the queue.
/// </summary>
/// <param name="query">The query to execute.</param>
/// <param name="nextLink">The URI to the next link of results.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that returns a page of results when complete.</returns>
Gets the next page of results in a search for operations in the queue.
Gets the next page of results in a search for operations in the queue .
private async Task<Page<TableOperation>> GetNextPageOfOperationsAsync(string query, string nextLink, CancellationToken cancellationToken = default)
        {
            var queryDescription = QueryDescription.Parse(SystemTables.OperationsQueue, nextLink != null ? new Uri(nextLink).Query.TrimStart('?') : query);
            var rawPage = await OfflineStore.GetPageAsync(queryDescription, cancellationToken).ConfigureAwait(false);
            return new Page<TableOperation>()
            {
                Count = rawPage.Count,
                Items = rawPage.Items.Select(x => TableOperation.Deserialize(x)).ToArray(),
                NextLink = rawPage.NextLink
            };
        }
private async Task < Page < TableOperation > > GetNextPageOfOperationsAsync ( string query , string nextLink , CancellationToken cancellationToken = default ) { var queryDescription = QueryDescription . Parse ( SystemTables . OperationsQueue , nextLink != null ? new Uri ( nextLink ) . Query . TrimStart ( ' ' ) : query ) ; var rawPage = await OfflineStore . GetPageAsync ( queryDescription , cancellationToken ) . ConfigureAwait ( false ) ; return new Page < TableOperation > ( ) { Count = rawPage . Count , Items = rawPage . Items . Select ( x => TableOperation . Deserialize ( x ) ) . ToArray ( ) , NextLink = rawPage . NextLink } ; }
Gets the next page of results in a search for operations in the queue.
Gets the next page of results in a search for operations in the queue .
A task that returns a page of results when complete.
A task that returns a page of results when complete .
query
string
The query to execute.
The query to execute .
nextLink
string
The URI to the next link of results.
The URI to the next link of results .
cancellationToken
CancellationToken
A  to observe.
A to observe .