sdk/dotnet/src/Microsoft.Datasync.Client/Offline/DeltaTokenStore.cs
/// <summary>
/// Resets the delta token for a table/queryId from persistent store.
/// </summary>
/// <remarks>
/// Delta tokens are stored for each query (identified by a user-specified queryId) to determine
/// the minimum value for updatedAt that must be queried to get incremental changes to the table.
/// </remarks>
/// <param name="tableName">The name of the table.</param>
/// <param name="queryId">The query ID of the table.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to acquire.</param>
/// <returns>A task that completes when the delta token has been reset.</returns>
Resets the delta token for a table/queryId from persistent store.
Resets the delta token for a table / queryId from persistent store .
public virtual async Task ResetDeltaTokenAsync(string tableName, string queryId, CancellationToken cancellationToken = default)
        {
            string key = GetKey(tableName, queryId);
            using (await cacheLock.AcquireAsync(cancellationToken).ConfigureAwait(false))
            {
                cache.Remove(key);
                await OfflineStore.DeleteAsync(SystemTables.Configuration, new string[] { key }, cancellationToken).ConfigureAwait(false);
            }
        }
public virtual async Task ResetDeltaTokenAsync ( string tableName , string queryId , CancellationToken cancellationToken = default ) { string key = GetKey ( tableName , queryId ) ; using ( await cacheLock . AcquireAsync ( cancellationToken ) . ConfigureAwait ( false ) ) { cache . Remove ( key ) ; await OfflineStore . DeleteAsync ( SystemTables . Configuration , new string [ ] { key } , cancellationToken ) . ConfigureAwait ( false ) ; } }
Resets the delta token for a table/queryId from persistent store.
Resets the delta token for a table / queryId from persistent store .
A task that completes when the delta token has been reset.
A task that completes when the delta token has been reset .
tableName
string
The name of the table.
The name of the table .
queryId
string
The query ID of the table.
The query ID of the table .
cancellationToken
CancellationToken
A  to acquire.
A to acquire .
remarks
Delta tokens are stored for each query (identified by a user-specified queryId) to determine
the minimum value for updatedAt that must be queried to get incremental changes to the table.
Delta tokens are stored for each query ( identified by a user - specified queryId ) to determine the minimum value for updatedAt that must be queried to get incremental changes to the table .