refactor:将AppDataCenterService改为AppCenterService,将AppDataStorageService改为AppStorageService,将触发器的增删改成合并
This commit is contained in:
@@ -9,11 +9,11 @@ namespace DMS.Application.Services;
|
||||
/// </summary>
|
||||
public class EventService : IEventService
|
||||
{
|
||||
private readonly IAppDataStorageService _appDataStorageService;
|
||||
private readonly IAppStorageService _appStorageService;
|
||||
|
||||
public EventService(IAppDataStorageService appDataStorageService)
|
||||
public EventService(IAppStorageService appStorageService)
|
||||
{
|
||||
_appDataStorageService = appDataStorageService;
|
||||
_appStorageService = appStorageService;
|
||||
}
|
||||
|
||||
#region 设备事件
|
||||
@@ -188,4 +188,23 @@ public class EventService : IEventService
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 触发器变量事件
|
||||
|
||||
/// <summary>
|
||||
/// 触发器与变量关联改变事件
|
||||
/// </summary>
|
||||
public event EventHandler<TriggerVariableChangedEventArgs> OnTriggerVariableChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 触发触发器与变量关联改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender">事件发送者</param>
|
||||
/// <param name="e">触发器与变量关联改变事件参数</param>
|
||||
public void RaiseTriggerVariableChanged(object sender, TriggerVariableChangedEventArgs e)
|
||||
{
|
||||
OnTriggerVariableChanged?.Invoke(sender, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user