public BackgroundService(string com) { serialPortService = new csjSerialPort(Oper, com); serialPortService.Open(); #if debug //测短信 dxService.Insert("jsrid", "2012/12/12 12:00:00", "neirong", "j"); //Oper(); //测破锁 psService.Insert("2012/12/12 12:00:00", "dwddid"); #endif udpService = new UdpService("127.0.0.1", "8000", null, null, ZF); }
public BackgroundService(string com) { serialPortService = new csjSerialPort(Oper, com); serialPortService.Open(); #if debug //测短信 dxService.Insert("jsrid", "2012/12/12 12:00:00", "neirong", "j"); //Oper(); //测破锁 psService.Insert("2012/12/12 12:00:00", "dwddid"); #endif udpService = new UdpService("127.0.0.1", "8000", null, null, (msg) => { //Console.WriteLine(msg); serialPortService.Send(msg); }); //写个闭包看起来不错swift }
public BackgroundService(string com) { serialPortService = new csjSerialPort(Oper, com); serialPortService.Open(); #if debug serialPortService.Send("fdsfsdfsdafasdfsdfds"); //测短信 //dxService.Insert("jsrid", "2012/12/12 12:00:00", "neirong", "j"); //Oper(); //测破锁 //psService.Insert("2012/12/12 12:00:00", "dwddid"); #endif udpService = new UdpService("127.0.0.1", "8000", null, null, (msg) => { //Console.WriteLine(msg); serialPortService.Send(msg); }); //写个闭包看起来不错swift }