コード例 #1
0
 private void queryOrderStatus()
 {
     while (true)
     {
         try
         {
             StateHandle      handle        = new StateHandle();
             List <OrderInfo> phoneInfoList = handle.queryOrderStatus(this);
             if (phoneInfoList == null || phoneInfoList.Count <= 0)
             {
                 Thread.Sleep(2000);
             }
             else
             {
                 Thread.Sleep(2000);
             }
         }
         catch (Exception ex)
         {
             View.write(Share.ExceptionToStringForView(ex));
             log.Debug(Share.ExceptionToStringForView(ex));
             Thread.Sleep(1000);//异常时休息
         }
     }
 }
コード例 #2
0
 private void queryOrderStatus()
 {
     while (true)
     {
         try
         {
             StateHandle handle = new StateHandle();
             List<OrderInfo> phoneInfoList = handle.queryOrderStatus(this);
             if (phoneInfoList == null || phoneInfoList.Count <=0)
             {
                 Thread.Sleep(2000);
             }
             else
             {
                 Thread.Sleep(2000);
             }
         }
         catch (Exception ex)
         {
             View.write(Share.ExceptionToStringForView(ex));
             log.Debug(Share.ExceptionToStringForView(ex));
             Thread.Sleep(1000);//异常时休息
         }
     }
 }