sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/OperationsQueue.cs
/// <summary>
/// Places a new operation into the queue.
/// </summary>
/// <param name="operation">The operation to enqueue.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that completes when the operation is enqueued.</returns>
Places a new operation into the queue.
Places a new operation into the queue .
public async Task EnqueueOperationAsync(TableOperation operation, CancellationToken cancellationToken = default)
        {
            using (await AcquireLockAsync(cancellationToken).ConfigureAwait(false))
            {
                EnsureQueueIsInitialized();
                operation.Sequence = Interlocked.Increment(ref sequenceId);
                await OfflineStore.UpsertAsync(SystemTables.OperationsQueue, new[] { operation.Serialize() }, false, cancellationToken).ConfigureAwait(false);
                Interlocked.Increment(ref pendingOperations);
            }
        }
public async Task EnqueueOperationAsync ( TableOperation operation , CancellationToken cancellationToken = default ) { using ( await AcquireLockAsync ( cancellationToken ) . ConfigureAwait ( false ) ) { EnsureQueueIsInitialized ( ) ; operation . Sequence = Interlocked . Increment ( ref sequenceId ) ; await OfflineStore . UpsertAsync ( SystemTables . OperationsQueue , new [ ] { operation . Serialize ( ) } , false , cancellationToken ) . ConfigureAwait ( false ) ; Interlocked . Increment ( ref pendingOperations ) ; } }
Places a new operation into the queue.
Places a new operation into the queue .
A task that completes when the operation is enqueued.
A task that completes when the operation is enqueued .
operation
TableOperation
The operation to enqueue.
The operation to enqueue .
cancellationToken
CancellationToken
A  to observe.
A to observe .