P0: GlobalInfo 四个 Dictionary 改为 ConcurrentDictionary

This commit is contained in:
“hsc”
2026-09-10 14:20:55 +08:00
parent 18995ee0e2
commit 11fe48ea9a
3 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -12,10 +12,10 @@ namespace UIShare.GlobalVariable
public class GlobalInfo:BindableBase
{
public event EventHandler? ScopeChanged;
public Dictionary<string,ScopedContext> ContextDic { get; set; }
public Dictionary<string,StepRunning> StepRunningDic { get; set; }
public Dictionary<string, SystemConfig> ConfigDic { get; set; }
public Dictionary<string, IScopedProvider> ScopeDic { get; set; }
public ConcurrentDictionary<string,ScopedContext> ContextDic { get; set; }
public ConcurrentDictionary<string,StepRunning> StepRunningDic { get; set; }
public ConcurrentDictionary<string, SystemConfig> ConfigDic { get; set; }
public ConcurrentDictionary<string, IScopedProvider> ScopeDic { get; set; }
/// <summary>硬件指纹 → 设备实例的并发池,确保同一物理硬件全局只创建一个驱动实例。</summary>
public ConcurrentDictionary<string, Lazy<IBaseInterface>> HardwarePool { get; set; }