跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

IMain.cs

40 行 · 901 B历史下载
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace Core.Servicers.Interfaces
8{
9 /// <summary>
10 /// 主要服务
11 /// </summary>
12 public interface IMain
13 {
14 /// <summary>
15 /// 运行服务(仅首次启动调用)
16 /// </summary>
17 void Run();
18 /// <summary>
19 /// 退出服务
20 /// </summary>
21 void Exit();
22 /// <summary>
23 /// 启动服务
24 /// </summary>
25 void Start();
26 /// <summary>
27 /// 停止服务
28 /// </summary>
29 void Stop();
30
31 /// <summary>
32 /// 更新某个进程时间时发生
33 /// </summary>
34 event EventHandler OnUpdateTime;
35 /// <summary>
36 /// 初始化完成时发生
37 /// </summary>
38 event EventHandler OnStarted;
39 }
40}