using IOT.Show.Common; using IOT.Show.SqlBase; using System; using System.Collections.Generic; using System.Linq; using System.ServiceProcess; using System.Text; using System.Threading; using System.Threading.Tasks; namespace IOT.Show { static class Program { /// /// 应用程序的主入口点。 /// static void Main() { try { //调试 Thread thread1 = new Thread(() => LedServer.init("ML5")); thread1.Start(); Thread thread2 = new Thread(() => LedServer.init("ML6")); thread2.Start(); Thread thread3 = new Thread(() => LedServer.init("ML7")); thread3.Start(); Thread thread4 = new Thread(() => LedServer.init("ML8")); thread4.Start(); Console.ReadLine(); }catch (Exception ex) { LogHelper.Error("初始化异常", ex); } } } }