using System.Collections.Concurrent; namespace BPASmartClient.DATABUS { /// /// 数据总线 /// public class Class_DataBus { #region 单例模式 public static Class_DataBus dataBus = null; public static Class_DataBus GetInstance() { if (dataBus == null) { dataBus = new Class_DataBus(); } return dataBus; } #endregion #region 基础配置 #endregion #region 实时数据->大数据量 public EventHandler BindingAction { get; set; } /// /// 绑定数据 /// public Dictionary Dic_RedisDataBinding=new Dictionary(); public void refreshDataAction(string Name) { BindingAction?.Invoke(Name,null); } /// /// 缓存Redis数据 /// public ConcurrentDictionary> Dic_RedisData = new ConcurrentDictionary>(); /// /// 缓存Redis数据相关类型 /// public ConcurrentDictionary> Dic_RedisDataType = new ConcurrentDictionary>(); /// /// API数据 /// public ConcurrentDictionary Dic_APIData = new ConcurrentDictionary(); #endregion #region 配置数据 #endregion } }