示例#1
0
 private void Sending()
 {
     while (true)
     {
         try
         {
             message = ServerAPI.Checking(MyID);
             if (message != null)
             {
                 foreach (var item in message)
                 {
                     GetReturn.ParseMessage(item);
                 }
             }
         }
         catch (Exception e)
         {
             Console.Error.Write(e.ToString());
             return;
         }
         Thread.Sleep(1000);
     }
 }
示例#2
0
        public void CheckingTest()
        {
            List <UserMessage> actual;//实际的值

            actual = ServerAPI.Checking(id);
        }