using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace IStation.Server
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public class JobHelper
|
{
|
private readonly List<IJobHelper> _helpers = new List<IJobHelper>()
|
{
|
new ServerHelper()
|
};
|
|
/// <summary>
|
/// 开启
|
/// </summary>
|
public void Start()
|
{
|
LogHelper.Info("Socket服务正在启动...");
|
_helpers.ForEach(x => x.Start());
|
LogHelper.Info("Socket服务启动!");
|
}
|
|
/// <summary>
|
/// 取消
|
/// </summary>
|
public void Cancel()
|
{
|
LogHelper.Info("Socket服务正在关闭...");
|
_helpers.ForEach(x => x.Cancel());
|
LogHelper.Info("Socket服务关闭!");
|
}
|
}
|
}
|