- 将LoadAllDevicesAsync方法移到DeviceManagementService - 将LoadAllVariableTablesAsync方法移到VariableTableManagementService - 将LoadAllVariablesAsync方法移到VariableManagementService - 将LoadAllMenusAsync方法移到MenuManagementService - 将LoadAllMqttServersAsync方法移到MqttManagementService - 将LoadAllNlogsAsync方法移到LogManagementService - 更新DataLoaderService以使用管理服务提供的方法 - 修改IDataLoaderService接口以移除这些方法 - 保持与LoadAllTriggersAsync相同的模式 - 遵循单一职责原则,提高代码一致性" (提交修改并添加描述性的提交信息)
18 lines
422 B
C#
18 lines
422 B
C#
using System.Collections.Concurrent;
|
|
using DMS.Application.DTOs;
|
|
using DMS.Application.Events;
|
|
|
|
namespace DMS.Application.Interfaces;
|
|
|
|
/// <summary>
|
|
/// 定义数据加载服务接口,负责从数据源加载数据到内存中
|
|
/// </summary>
|
|
public interface IDataLoaderService
|
|
{
|
|
/// <summary>
|
|
/// 异步加载所有设备及其关联数据到内存中
|
|
/// </summary>
|
|
Task LoadAllDataToMemoryAsync();
|
|
|
|
|
|
} |