1. 从 IDeviceManagementService 接口中移除了 OnDeviceChanged 事件
2. 在 DeviceManagementService 中添加了对 IEventService 的依赖 3. 在 DeviceManagementService 的三个内存操作方法中,将直接事件触发改为通过 _eventService.RaiseDeviceChanged 方法触发 4. EventService 本身已经实现了 OnDeviceChanged 事件和对应的 RaiseDeviceChanged 方法
This commit is contained in:
@@ -5,10 +5,7 @@ namespace DMS.Application.Interfaces.Management;
|
||||
|
||||
public interface IDeviceManagementService
|
||||
{
|
||||
/// <summary>
|
||||
/// 当设备数据发生变化时触发
|
||||
/// </summary>
|
||||
event EventHandler<DeviceChangedEventArgs> OnDeviceChanged;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 异步根据ID获取设备DTO。
|
||||
|
||||
Reference in New Issue
Block a user