sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/OperationBatch.cs
/// <summary>
/// Loads all the sync errors in local store that are recorded for this batch.
/// </summary>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A list of sync errors.</returns>
Loads all the sync errors in local store that are recorded for this batch.
Loads all the sync errors in local store that are recorded for this batch .
public async Task<IList<TableOperationError>> LoadErrorsAsync(CancellationToken cancellationToken = default)
        {
            var enumerable = new FuncAsyncPageable<TableOperationError>(nextLink => GetNextPageAsync("", nextLink, cancellationToken));
            var errors = new List<TableOperationError>();
            await foreach (var error in enumerable)
            {
                error.Context = Context;
                errors.Add(error);
            }
            return errors;
        }
public async Task < IList < TableOperationError > > LoadErrorsAsync ( CancellationToken cancellationToken = default ) { var enumerable = new FuncAsyncPageable < TableOperationError > ( nextLink => GetNextPageAsync ( " " , nextLink , cancellationToken ) ) ; var errors = new List < TableOperationError > ( ) ; await foreach ( var error in enumerable ) { error . Context = Context ; errors . Add ( error ) ; } return errors ; }
Loads all the sync errors in local store that are recorded for this batch.
Loads all the sync errors in local store that are recorded for this batch .
A list of sync errors.
A list of sync errors .
cancellationToken
CancellationToken
A  to observe.
A to observe .