跳到主要内容

github/tai

公开

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

浏览文件

IAppConfig.cs

36 行 · 755 B历史下载
1using Core.Event;
2using Core.Models.Config;
3using System;
4using System.Collections.Generic;
5using System.Linq;
6using System.Text;
7using System.Threading.Tasks;
8
9namespace Core.Servicers.Interfaces
10{
11 /// <summary>
12 /// 应用配置
13 /// </summary>
14 public interface IAppConfig
15 {
16 /// <summary>
17 /// 加载配置
18 /// </summary>
19 void Load();
20
21 /// <summary>
22 /// 获取配置
23 /// </summary>
24 /// <returns></returns>
25 ConfigModel GetConfig();
26
27 /// <summary>
28 /// 更新配置
29 /// </summary>
30 void Save();
31 /// <summary>
32 /// 配置修改时发生
33 /// </summary>
34 event AppConfigEventHandler ConfigChanged;
35 }
36}