public void LoadMore(Action callback) { if (!HasMore || Commits.Count == 0 || Commits.Count >= MAX_LOADED_COMMITS) { HasMore = false; callback(); return; } var fromRevision = Commits.Last().Revision; service.Get10AfterRevision(fromRevision, loadedCommits => { if (loadedCommits.Count() < 10) { HasMore = false; } StoreNewCommits(loadedCommits); callback(); }); }