namespace XFEExtension.NetCore.AutoConfig; /// /// 配置文件加载失败事件数据。 /// /// 配置类型 /// 加载失败的配置文件路径 /// 损坏文件的备份路径;备份失败时为 /// 加载异常 /// 异常发生时间(UTC) public sealed class ProfileLoadFailedEventArgs(Type profileType, string profilePath, string? backupPath, Exception exception, DateTimeOffset occurredAtUtc) : EventArgs { /// 配置类型。 public Type ProfileType { get; } = profileType; /// 加载失败的配置文件路径。 public string ProfilePath { get; } = profilePath; /// 损坏文件的备份路径;备份失败时为 public string? BackupPath { get; } = backupPath; /// 加载异常。 public Exception Exception { get; } = exception; /// 异常发生时间(UTC)。 public DateTimeOffset OccurredAtUtc { get; } = occurredAtUtc; }