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); } }
public void CheckingTest() { List <UserMessage> actual;//实际的值 actual = ServerAPI.Checking(id); }