给数据中心添加事件

This commit is contained in:
2025-09-02 21:06:39 +08:00
parent 5e19bad149
commit afedf708de
9 changed files with 497 additions and 8 deletions

View File

@@ -1,5 +1,7 @@
using DMS.Application.DTOs;
using DMS.Application.DTOs.Events;
using DMS.Core.Models;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading.Tasks;
@@ -11,6 +13,34 @@ namespace DMS.Application.Interfaces;
/// </summary>
public interface IDataCenterService
{
#region
/// <summary>
/// 当数据加载完成时触发
/// </summary>
event EventHandler<DataLoadCompletedEventArgs> DataLoadCompleted;
/// <summary>
/// 当设备数据发生变化时触发
/// </summary>
event EventHandler<DeviceChangedEventArgs> DeviceChanged;
/// <summary>
/// 当变量表数据发生变化时触发
/// </summary>
event EventHandler<VariableTableChangedEventArgs> VariableTableChanged;
/// <summary>
/// 当变量数据发生变化时触发
/// </summary>
event EventHandler<VariableChangedEventArgs> VariableChanged;
/// <summary>
/// 当数据发生任何变化时触发
/// </summary>
event EventHandler<DataChangedEventArgs> DataChanged;
#endregion
#region
/// <summary>