sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/OperationsQueue.cs
/// <summary>
/// Retrieves a table operation within the operations queue based on the ID of the operation.
/// </summary>
/// <param name="id">The ID of the operation.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that returns the table operation when complete.</returns>
Retrieves a table operation within the operations queue based on the ID of the operation.
Retrieves a table operation within the operations queue based on the ID of the operation .
public virtual async Task<TableOperation> GetOperationByIdAsync(string id, CancellationToken cancellationToken = default)
        {
            EnsureQueueIsInitialized();
            JObject operation = await OfflineStore.GetItemAsync(SystemTables.OperationsQueue, id, cancellationToken).ConfigureAwait(false);
            return operation == null ? null : TableOperation.Deserialize(operation);
        }
public virtual async Task < TableOperation > GetOperationByIdAsync ( string id , CancellationToken cancellationToken = default ) { EnsureQueueIsInitialized ( ) ; JObject operation = await OfflineStore . GetItemAsync ( SystemTables . OperationsQueue , id , cancellationToken ) . ConfigureAwait ( false ) ; return operation == null ? null : TableOperation . Deserialize ( operation ) ; }
Retrieves a table operation within the operations queue based on the ID of the operation.
Retrieves a table operation within the operations queue based on the ID of the operation .
A task that returns the table operation when complete.
A task that returns the table operation when complete .
id
string
The ID of the operation.
The ID of the operation .
cancellationToken
CancellationToken
A  to observe.
A to observe .