using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Topshelf; using IStation.Server; namespace IStation.TopShelf { /// /// /// public class Service : ServiceControl { private readonly ApiJobHelper _jobHelper = new ApiJobHelper(); /// /// /// public bool Start(HostControl hostControl) { _ = _jobHelper.StartJob(); return true; } /// /// /// public bool Stop(HostControl hostControl) { _ = _jobHelper.CancelJob(); return true; } } }