Example #1
0
 private void statusNotify()
 {
     while (true)
     {
         try
         {
             StateHandle      handle        = new StateHandle();
             List <OrderInfo> phoneInfoList = handle.statusNotify(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);//异常时休息
         }
     }
 }
Example #2
0
 private void statusNotify()
 {
     while (true)
     {
         try
         {
             StateHandle handle = new StateHandle();
             List<OrderInfo> phoneInfoList = handle.statusNotify(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);//异常时休息
         }
     }
 }