using IOT.Show.Common; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq; using System.ServiceProcess; using System.Text; using System.Threading.Tasks; namespace IOT.Show { public partial class Service1 : ServiceBase { public Service1() { InitializeComponent(); } protected override void OnStart(string[] args) { LedServer.init(); LogHelper.Info("服务启动!!!"); } protected override void OnStop() { LogHelper.Info("服务停止!!!"); } } }