将Feature/XP.Common和Feature/XP.Hardware分支合并至Develop/XP.forHardwareAndCommon,完善XPapp注册和相关硬件类库通用类库功能。

This commit is contained in:
QI Mingxuan
2026-04-16 17:31:13 +08:00
parent 6ec4c3ddaa
commit 2bd6e566c3
581 changed files with 74600 additions and 222 deletions
+34
View File
@@ -0,0 +1,34 @@
namespace XP.Common.Dump.Configs
{
/// <summary>
/// Dump 功能配置实体(从 App.config 读取)
/// Dump feature configuration entity (loaded from App.config)
/// </summary>
public class DumpConfig
{
/// <summary>
/// Dump 文件存储路径 | Dump file storage path
/// </summary>
public string StoragePath { get; set; } = @"D:\XplorePlane\Dump";
/// <summary>
/// 是否启用定时触发 | Enable scheduled trigger
/// </summary>
public bool EnableScheduledDump { get; set; } = false;
/// <summary>
/// 定时触发间隔(分钟)| Scheduled trigger interval (minutes)
/// </summary>
public int ScheduledIntervalMinutes { get; set; } = 60;
/// <summary>
/// Mini Dump 文件大小上限(MB| Mini Dump file size limit (MB)
/// </summary>
public long MiniDumpSizeLimitMB { get; set; } = 100;
/// <summary>
/// 文件保留天数 | File retention days
/// </summary>
public int RetentionDays { get; set; } = 7;
}
}
+23
View File
@@ -0,0 +1,23 @@
namespace XP.Common.Dump.Configs
{
/// <summary>
/// Dump 触发类型 | Dump trigger type
/// </summary>
public enum DumpTriggerType
{
/// <summary>
/// 崩溃触发 | Crash trigger
/// </summary>
Crash,
/// <summary>
/// 定时触发 | Scheduled trigger
/// </summary>
Scheduled,
/// <summary>
/// 手动触发 | Manual trigger
/// </summary>
Manual
}
}