Apq.Cfg.MergedCfgRoot.md 2.4 KB

Apq.Cfg

Apq.Cfg

MergedCfgRoot Class

合并配置根实现

internal sealed class MergedCfgRoot : Apq.Cfg.ICfgRoot, System.IDisposable, System.IAsyncDisposable

Inheritance System.Object 🡒 MergedCfgRoot

Implements ICfgRoot, System.IDisposable, System.IAsyncDisposable

Properties
HasPendingChanges 检查是否有待处理的配置变更
ReloadErrors 重载错误事件(Rx 可观察序列)
Methods
ClearChangeHistory() 清空配置变更历史记录
GetChangeHistory() 获取配置变更历史记录
GetMasked(string) 获取脱敏后的配置值(用于日志输出)
GetMaskedSnapshot() 获取所有配置的脱敏快照(用于调试)
Reload() 手动触发配置重载(用于 Manual 和 Lazy 策略)
ToMicrosoftConfiguration() 转换为 Microsoft Configuration(静态快照)
ToMicrosoftConfiguration(DynamicReloadOptions) 转换为支持动态重载的 Microsoft Configuration