using Yw.Server;
using Topshelf;
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;
}
}
}