Skip to content

Commit

Permalink
Fix to ensure the maximum number of items requested using FindAllAsyn…
Browse files Browse the repository at this point in the history
…c in the GenercicMultiRemoteRepository is not exceeded in the returned collection.
  • Loading branch information
ricardoeduardo committed Aug 28, 2019
1 parent 136be97 commit 06f327b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public GenericMultiRemoteRepository(

await AfterAllItemsLoadedAsync(lstItem, cancellationToken, options).ConfigureAwait(false);

return (allSuccess, lstSourceFailure ?? _emptyRemoteSourceFailuresList, lstItem);
return (allSuccess, lstSourceFailure ?? _emptyRemoteSourceFailuresList, lstItem.Take(pageSizeRequest).ToList());
}
catch (Exception exc) when (Log.WriteError(exc, new { pageNumber, pageSizeRequest, options }, returnValue: true))
{
Expand Down

0 comments on commit 06f327b

Please sign in to comment.