摘要: public sealed class JsonSerializer { public static byte[] Serialize(object message) { return Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(message)); } ... 阅读全文
posted @ 2017-02-05 19:28 zslm___ 阅读(1710) 评论(0) 推荐(0) 编辑
摘要: var cts = new CancellationTokenSource(); Thread t = new Thread(new ThreadStart(() => { Console.WriteLine(string.Format("{1}线程Id:{0}开始运行", Thread.C... 阅读全文
posted @ 2017-02-05 18:16 zslm___ 阅读(389) 评论(0) 推荐(0) 编辑