sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/OperationBatch.cs
/// <summary>
/// Adds an error to the list of synchronization errors.
/// </summary>
/// <param name="operation">The operation causing the error</param>
/// <param name="status">The HTTP status code returned by server.</param>
/// <param name="rawResult">Raw response of the table operation.</param>
/// <param name="result">Response of the table operation.</param>
/// <param name="cancellationToken">The cancellation token.</param>
Adds an error to the list of synchronization errors.
Adds an error to the list of synchronization errors .
public async Task AddErrorAsync(TableOperation operation, HttpStatusCode? status, string rawResult, JObject result, CancellationToken cancellationToken = default)
        {
            Arguments.IsNotNull(operation, nameof(operation));
            var error = new TableOperationError(operation, Context, status, rawResult, result);
            await OfflineStore.UpsertAsync(SystemTables.SyncErrors, new[] { error.Serialize() }, false, cancellationToken);
        }
public async Task AddErrorAsync ( TableOperation operation , HttpStatusCode ? status , string rawResult , JObject result , CancellationToken cancellationToken = default ) { Arguments . IsNotNull ( operation , nameof ( operation ) ) ; var error = new TableOperationError ( operation , Context , status , rawResult , result ) ; await OfflineStore . UpsertAsync ( SystemTables . SyncErrors , new [ ] { error . Serialize ( ) } , false , cancellationToken ) ; }
Adds an error to the list of synchronization errors.
Adds an error to the list of synchronization errors .
operation
TableOperation
The operation causing the error
The operation causing the error
status
HttpStatusCode?
The HTTP status code returned by server.
The HTTP status code returned by server .
rawResult
string
Raw response of the table operation.
Raw response of the table operation .
result
JObject
Response of the table operation.
Response of the table operation .
cancellationToken
CancellationToken
The cancellation token.
The cancellation token .