浏览文件
IAppTimerServicer.cs
31 行 · 753 B历史下载| 1 | using Core.Event; |
| 2 | using System; |
| 3 | using System.Collections.Generic; |
| 4 | using System.Linq; |
| 5 | using System.Text; |
| 6 | using System.Threading.Tasks; |
| 7 | |
| 8 | namespace Core.Servicers.Interfaces |
| 9 | { |
| 10 | public interface IAppTimerServicer |
| 11 | { |
| 12 | /// <summary> |
| 13 | /// 当有应用的计时更新时发生 |
| 14 | /// </summary> |
| 15 | event AppTimerEventHandler OnAppDurationUpdated; |
| 16 | |
| 17 | /// <summary> |
| 18 | /// 启动计时服务 |
| 19 | /// </summary> |
| 20 | void Start(); |
| 21 | /// <summary> |
| 22 | /// 停止计时服务 |
| 23 | /// </summary> |
| 24 | void Stop(); |
| 25 | /// <summary> |
| 26 | /// 获取当前应用的计时信息 |
| 27 | /// </summary> |
| 28 | /// <returns></returns> |
| 29 | AppDurationUpdatedEventArgs GetAppDuration(); |
| 30 | } |
| 31 | } |

