sdk/dotnet/src/Microsoft.Datasync.Client/Offline/SyncContext.cs
/// <summary>
/// Determines if the table is dirty (i.e. has pending operations)
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that returns <c>true</c> if the table is dirty, and <c>false</c> otherwise when complete.</returns>
Determines if the table is dirty
Determines if the table is dirty
internal async Task<bool> TableIsDirtyAsync(string tableName, CancellationToken cancellationToken)
        {
            EnsureContextIsInitialized();
            long pendingOperations = await OperationsQueue.CountPendingOperationsAsync(tableName, cancellationToken).ConfigureAwait(false);
            return pendingOperations > 0;
        }
internal async Task < bool > TableIsDirtyAsync ( string tableName , CancellationToken cancellationToken ) { EnsureContextIsInitialized ( ) ; long pendingOperations = await OperationsQueue . CountPendingOperationsAsync ( tableName , cancellationToken ) . ConfigureAwait ( false ) ; return pendingOperations > 0 ; }
Determines if the table is dirty (i.e.
Determines if the table is dirty ( i . e .
A task that returns truefalse
A task that returns truefalse
tableName
string
Name of the table.
Name of the table .
cancellationToken
CancellationToken
A  to observe.
A to observe .