IService接口,以实现服务的启动、停止功能:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Utils
{
    /// <summary>
    /// 服务接口
    /// </summary>
    public interface IService
    {
        /// <summary>
        /// 服务启动
        /// </summary>
        void OnStart();

        /// <summary>
        /// 服务停止
        /// </summary>
        void OnStop();
    }
}
View Code

相关文章:

  • 2021-06-15
  • 2019-07-18
  • 2022-12-23
  • 2022-02-21
  • 2021-10-16
  • 2020-07-20
  • 2022-12-23
  • 2022-01-22
猜你喜欢
  • 2020-10-31
  • 2022-01-18
  • 2021-10-01
  • 2020-03-17
  • 2022-12-23
  • 2022-01-23
  • 2021-06-19
相关资源
相似解决方案