sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/OperationsQueue.cs
/// <summary>
/// Counts the number of operations in the queue for a specific table.
/// </summary>
/// <param name="tableName">The name of the table.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>The number of operations in the queue for the table.</returns>
Counts the number of operations in the queue for a specific table.
Counts the number of operations in the queue for a specific table .
public async Task<long> CountPendingOperationsAsync(string tableName, CancellationToken cancellationToken = default)
        {
            EnsureQueueIsInitialized();
            QueryDescription query = new(SystemTables.OperationsQueue)
            {
                Filter = Compare(BinaryOperatorKind.Equal, "tableName", tableName),
                IncludeTotalCount = true,
                Top = 0
            };
            var page = await OfflineStore.GetPageAsync(query, cancellationToken).ConfigureAwait(false);
            return page.Count ?? 0;
        }
public async Task < long > CountPendingOperationsAsync ( string tableName , CancellationToken cancellationToken = default ) { EnsureQueueIsInitialized ( ) ; QueryDescription query = new ( SystemTables . OperationsQueue ) { Filter = Compare ( BinaryOperatorKind . Equal , " " , tableName ) , IncludeTotalCount = true , Top = 0 } ; var page = await OfflineStore . GetPageAsync ( query , cancellationToken ) . ConfigureAwait ( false ) ; return page . Count ?? 0 ; }
Counts the number of operations in the queue for a specific table.
Counts the number of operations in the queue for a specific table .
The number of operations in the queue for the table.
The number of operations in the queue for the table .
tableName
string
The name of the table.
The name of the table .
cancellationToken
CancellationToken
A  to observe.
A to observe .