sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/OperationBatch.cs
/// <summary>
/// Loads a single page from the SyncErrors table into memory.
/// </summary>
/// <param name="query">The query to execute.</param>
/// <param name="nextLink">The next link.</param>
/// <returns>A page of operation error objects.</returns>
Loads a single page from the SyncErrors table into memory.
Loads a single page from the SyncErrors table into memory .
private async Task<Page<TableOperationError>> GetNextPageAsync(string query, string nextLink, CancellationToken cancellationToken)
        {
            if (nextLink != null)
            {
                var requestUri = new Uri(nextLink);
                query = requestUri.Query.TrimStart('?');
            }
            Page<JObject> sourcePage = await Context.GetNextPageAsync(SystemTables.SyncErrors, query, cancellationToken).ConfigureAwait(false);
            return new Page<TableOperationError>()
            {
                Count = sourcePage.Count,
                NextLink = sourcePage.NextLink,
                Items = sourcePage.Items?.Select(err => TableOperationError.Deserialize(err, SerializerSettings))
            };
        }
private async Task < Page < TableOperationError > > GetNextPageAsync ( string query , string nextLink , CancellationToken cancellationToken ) { if ( nextLink != null ) { var requestUri = new Uri ( nextLink ) ; query = requestUri . Query . TrimStart ( ' ' ) ; } Page < JObject > sourcePage = await Context . GetNextPageAsync ( SystemTables . SyncErrors , query , cancellationToken ) . ConfigureAwait ( false ) ; return new Page < TableOperationError > ( ) { Count = sourcePage . Count , NextLink = sourcePage . NextLink , Items = sourcePage . Items ? . Select ( err => TableOperationError . Deserialize ( err , SerializerSettings ) ) } ; }
Loads a single page from the SyncErrors table into memory.
Loads a single page from the SyncErrors table into memory .
A page of operation error objects.
A page of operation error objects .
query
string
The query to execute.
The query to execute .
nextLink
string
The next link.
The next link .
cancellationToken
CancellationToken