using System; using System.Collections.Generic; using System.Text; namespace LYFZ.StandardInterface { /// /// Windows服务运行接口 /// public interface IServiceRunning { /// /// 服务名 /// string ServiceName { set; get; } /// /// 初始化服务构造函数 /// void InitializeConstructor(); /// /// 执行定时任务 windows服务是不执行Timer控件的,解决办法 /// void SetTimerRunWork(); /// /// 要定时处理的事情 /// 这样服务就可以定时执行任务了 /// /// /// void RunWork(object source, System.Timers.ElapsedEventArgs e); /// /// 写服务日志 /// /// void ServiceWriteLog(string txt); /// /// 开始 /// /// void OnStart(string[] args); /// /// 停止 /// void OnStop(); /// /// 暂停 /// void OnPause(); /// /// 继续 /// void OnContinue(); /// /// 计算机关闭时 /// void OnShutdown(); } }