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