sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/OperationsQueue.cs
/// <summary>
/// Updates an operation within the operations queue.
/// </summary>
/// <param name="operation">The operation to update.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that completes when the operation is updated.</returns>
Updates an operation within the operations queue.
Updates an operation within the operations queue .
public async Task UpdateOperationAsync(TableOperation operation, CancellationToken cancellationToken = default)
        {
            using (await AcquireLockAsync(cancellationToken).ConfigureAwait(false))
            {
                EnsureQueueIsInitialized();
                try
                {
                    await OfflineStore.UpsertAsync(SystemTables.OperationsQueue, new[] { operation.Serialize() }, false, cancellationToken).ConfigureAwait(false);
                }
                catch (Exception ex)
                {
                    throw new OfflineStoreException("Failed to update operation in the local store.", ex);
                }
            }
        }
public async Task UpdateOperationAsync ( TableOperation operation , CancellationToken cancellationToken = default ) { using ( await AcquireLockAsync ( cancellationToken ) . ConfigureAwait ( false ) ) { EnsureQueueIsInitialized ( ) ; try { await OfflineStore . UpsertAsync ( SystemTables . OperationsQueue , new [ ] { operation . Serialize ( ) } , false , cancellationToken ) . ConfigureAwait ( false ) ; } catch ( Exception ex ) { throw new OfflineStoreException ( " " , ex ) ; } } }
Updates an operation within the operations queue.
Updates an operation within the operations queue .
A task that completes when the operation is updated.
A task that completes when the operation is updated .
operation
TableOperation
The operation to update.
The operation to update .
cancellationToken
CancellationToken
A  to observe.
A to observe .