Files
XplorePlane/XP.Common/Dump/Configs/DumpConfig.cs
T

35 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}
}