public static Task <Dictionary <TKey, TElement> > ToDictionaryAsync <T, TKey, TElement>(this IQueryable <T> queryable, IAsyncQueryableResolver repository,
                                                                                         Func <T, TKey> keySelector, Func <T, TElement> elementSelector, IEqualityComparer <TKey> comparer, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(repository.ToDictionaryAsync(queryable, keySelector, elementSelector, comparer, cancellationToken));
 }
 public static Task <Dictionary <TKey, T> > ToDictionaryAsync <T, TKey>(this IQueryable <T> queryable, IAsyncQueryableResolver repository, Func <T, TKey> keySelector,
                                                                        CancellationToken cancellationToken = default(CancellationToken))
 {
     return(repository.ToDictionaryAsync(queryable, keySelector, cancellationToken));
 }