1. 从 IDeviceManagementService 接口中移除了 OnDeviceChanged 事件

2. 在 DeviceManagementService 中添加了对 IEventService 的依赖
   3. 在 DeviceManagementService 的三个内存操作方法中,将直接事件触发改为通过 _eventService.RaiseDeviceChanged 方法触发
   4. EventService 本身已经实现了 OnDeviceChanged 事件和对应的 RaiseDeviceChanged 方法
This commit is contained in:
2025-10-01 18:15:51 +08:00
parent 2dda2029bd
commit 62ce7093cf
2 changed files with 7 additions and 13 deletions

View File

@@ -5,10 +5,7 @@ namespace DMS.Application.Interfaces.Management;
public interface IDeviceManagementService
{
/// <summary>
/// 当设备数据发生变化时触发
/// </summary>
event EventHandler<DeviceChangedEventArgs> OnDeviceChanged;
/// <summary>
/// 异步根据ID获取设备DTO。