using System.Collections.Concurrent;
using DMS.Application.DTOs;
using DMS.Application.Interfaces;
using DMS.Core.Models;
namespace DMS.Application.Services;
public class AppDataStorageService : IAppDataStorageService
{
///
/// 安全字典,用于存储所有设备数据
///
public ConcurrentDictionary Devices { get; } = new();
///
/// 安全字典,用于存储所有变量表数据
///
public ConcurrentDictionary VariableTables { get; } = new();
///
/// 安全字典,用于存储所有变量数据
///
public ConcurrentDictionary Variables { get; } = new();
///
/// 安全字典,用于存储所有菜单数据
///
public ConcurrentDictionary Menus { get; } = new();
///
/// 安全字典,用于存储所有菜单数据
///
public ConcurrentDictionary MenuTrees { get; } = new();
///
/// 安全字典,用于存储所有MQTT服务器数据
///
public ConcurrentDictionary MqttServers { get; } = new();
///
/// 安全字典,用于存储所有MQTT变量别名的数据
///
public ConcurrentDictionary VariableMqttAliases { get; } = new();
///
/// 安全字典,用于存储所有历史记录
///
public ConcurrentDictionary VariableHistories { get; } = new();
///
/// 安全字典,用于存储所有日志数据
///
public ConcurrentDictionary Nlogs { get; } = new();
///
/// 安全字典,用于存储所有触发器定义数据
///
public ConcurrentDictionary Triggers { get; } = new();
}