wp7-app
wp7-app copied to clipboard
感觉UID为0时应该不进行Tool.AsyncGetUserNotice();
public static void StartUserNoticeThread() { if (thread != null && thread.IsAlive) { return; } thread = new Thread(new ThreadStart( () => { while (true) { System.Threading.Thread.Sleep(TimeSpan.FromMilliseconds(2)); Tool.AsyncGetUserNotice(); } } )) { IsBackground = true, }; thread.Start(); } 一直在后台这样会很耗流量