public List <TDocument> Find <TDocument>(QueryPlanResult plan, int page, int pageSize, int skip, out int total) where TDocument : hOOt.Document { if (!_isAlive) { total = 0; return(new List <TDocument>()); } UpdateLastUsedToken(); return(_hoot.FindPagedDocuments <TDocument>(plan.BitArray, page, pageSize, skip, out total)); }
public List <TDocument> Find <TDocument>(Lazy <WAHBitArray> plan, int page, int pageSize, int skip, out int total) where TDocument : hOOt.Document { lock (_gate) { if (!_isAlive) { total = 0; return(new List <TDocument>()); } UpdateToken(); return(_hoot.FindPagedDocuments <TDocument>(plan, page, pageSize, skip, out total)); } }