Ejemplo n.º 1
0
 /// <summary>
 /// 查找匹配记录集合
 /// </summary>
 /// <param name="connection"></param>
 internal override void RunLinkQueueTask(ref DbConnection connection)
 {
     try
     {
         array = tree.GetFind(isValue);
     }
     finally
     {
         wait.Set();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 查找匹配记录集合
 /// </summary>
 /// <param name="connection"></param>
 internal override Threading.LinkQueueTaskNode RunLinkQueueTask(ref DbConnection connection)
 {
     try
     {
         array = tree.GetFind(isValue);
     }
     finally
     {
         wait.Set();
     }
     return(LinkNext);
 }
 /// <summary>
 /// 查找匹配记录集合
 /// </summary>
 /// <param name="connection"></param>
 internal override void RunLinkQueueTask(ref DbConnection connection)
 {
     try
     {
         Value = tree.GetFind(isValue);
     }
     finally
     {
         if (System.Threading.Interlocked.CompareExchange(ref continuation, Pub.EmptyAction, null) != null)
         {
             new Task(continuation).Start();
         }
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 查找匹配记录集合
 /// </summary>
 /// <param name="connection"></param>
 internal override void RunLinkQueueTask(ref DbConnection connection)
 {
     try
     {
         Value       = tree.GetFind(isValue);
         IsCompleted = true;
     }
     finally
     {
         if (continuation != null || System.Threading.Interlocked.CompareExchange(ref continuation, Common.EmptyAction, null) != null)
         {
             continuation();
         }
     }
 }