using IStation.Server; using Topshelf; namespace IStation.TopShelf { /// /// /// public class Service : ServiceControl { private readonly JobHelper _jobHelper = new(); /// /// /// /// /// public bool Start(HostControl hostControl) { Yw.LogHelper.Info("启动:陈行场内模型在线验证服务"); _jobHelper.StartJob(); return true; } /// /// /// /// /// public bool Stop(HostControl hostControl) { Yw.LogHelper.Info("停止:陈行场内模型在线验证服务"); _jobHelper.CancelJob(); return true; } } }