压力测试优化1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using DeviceCommand.Base;
|
||||
using MaterialDesignThemes.Wpf;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
@@ -32,8 +33,12 @@ namespace UIShare.GlobalVariable
|
||||
|
||||
public List<IBaseInterface> DeviceList { get; set; } = new();
|
||||
|
||||
/// <summary>当前作用域的日志接收器,LogAreaViewModel 订阅此处实现按作用域隔离日志。</summary>
|
||||
public IProgress<(string Message, Brush Color, int Depth)>? LogProgress { get; set; }
|
||||
/// <summary>
|
||||
/// 日志缓冲队列:后台线程(ScopeLogDispatcher)直接入队,
|
||||
/// UI 线程(DispatcherTimer)定时出队并刷新到 ObservableCollection。
|
||||
/// 不走 Progress<T> / SynchronizationContext,避免 Post 淹没 UI 消息队列。
|
||||
/// </summary>
|
||||
public ConcurrentQueue<(string Message, Brush Color, int Depth)> LogBuffer { get; } = new();
|
||||
|
||||
// 【新增测试属性】:每个实例被 new 出来时独一无二的随机身份
|
||||
// 证 ID
|
||||
|
||||
Reference in New Issue
Block a user