public static async Task <int> CountAsync <TEntity>( this IQueryable <TEntity> queryable, CancellationToken cancellationToken = default) where TEntity : class { return(await queryable.InvokeCosmosCallAsync(() => DocumentQueryable.CountAsync(queryable, cancellationToken), queryable.ToString())); }
public static async Task <int> CountAsync <TEntity>( this IQueryable <TEntity> queryable, CancellationToken cancellationToken = default) { return(await queryable.InvokeCosmosCallAsync(() => DocumentQueryable.CountAsync(queryable, cancellationToken), queryable.ToString(), target : GetAltLocationFromQueryable(queryable))); }