using Topshelf;
using Yw.Server;
namespace Yw.TopShelf
{
///
///
///
public class Service : ServiceControl
{
private readonly JobHelper _jobHelper = new();
///
///
///
///
///
public bool Start(HostControl hostControl)
{
_jobHelper.StartJob();
return true;
}
///
///
///
///
///
public bool Stop(HostControl hostControl)
{
_jobHelper.CancelJob();
return true;
}
}
}