Permalink
Browse files

add internal overload that takes page size

  • Loading branch information...
1 parent 1579654 commit 1ffc92fb670ba8b3ad8a9aab7300352705298f29 @friism friism committed Jun 15, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/NGitHub/Services/RepositoryService.cs
@@ -246,6 +246,19 @@ public class RepositoryService : IRepositoryService {
int page,
Action<IEnumerable<Repository>> callback,
Action<GitHubException> onError) {
+ return GetRepositoriesAsyncInternal(resource,
+ page,
+ _defaultPageSize,
+ callback,
+ onError);
+ }
+
+ private GitHubRequestAsyncHandle GetRepositoriesAsyncInternal(
+ string resource,
+ int page,
+ int take,
+ Action<IEnumerable<Repository>> callback,
+ Action<GitHubException> onError) {
var request = new GitHubRequest(resource,
API.v3,
Method.GET,

0 comments on commit 1ffc92f

Please sign in to comment.