示例#1
0
 /// <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();
     }
 }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <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);
     }
     finally
     {
         if (System.Threading.Interlocked.CompareExchange(ref continuation, Pub.EmptyAction, null) != null)
         {
             new Task(continuation).Start();
         }
     }
 }
示例#4
0
 /// <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();
         }
     }
 }