/// <summary> /// 获取分页记录集合 /// </summary> /// <param name="connection"></param> internal override void RunLinkQueueTask(ref DbConnection connection) { try { values = isDesc ? tree.getPageDesc(pageSize, currentPage, out count) : tree.getPage(pageSize, currentPage, out count); } finally { wait.Set(); } }
/// <summary> /// 获取分页记录集合 /// </summary> /// <param name="connection"></param> internal override Threading.LinkQueueTaskNode RunLinkQueueTask(ref DbConnection connection) { try { Value.Key = isDesc ? tree.getPageDesc(pageSize, currentPage, out Value.Value) : tree.getPage(pageSize, currentPage, out Value.Value); } finally { if (System.Threading.Interlocked.CompareExchange(ref continuation, Pub.EmptyAction, null) != null) { new Task(continuation).Start(); } } return(LinkNext); }
/// <summary> /// 获取分页记录集合 /// </summary> /// <param name="connection"></param> internal override Threading.LinkQueueTaskNode RunLinkQueueTask(ref DbConnection connection) { try { values = isDesc ? tree.getPageDesc(pageSize, currentPage, out count) : tree.getPage(pageSize, currentPage, out count); } finally { wait.Set(); } return(LinkNext); }
/// <summary> /// 获取分页记录集合 /// </summary> /// <param name="connection"></param> internal override void RunLinkQueueTask(ref DbConnection connection) { try { Value.Key = isDesc ? tree.getPageDesc(pageSize, currentPage, out Value.Value) : tree.getPage(pageSize, currentPage, out Value.Value); IsCompleted = true; } finally { if (continuation != null || System.Threading.Interlocked.CompareExchange(ref continuation, Common.EmptyAction, null) != null) { continuation(); } } }