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