Apq.Cfg.Xml.XmlFileCfgSource.md 2.1 KB

Apq.Cfg.Xml

XmlFileCfgSource Class

XML 文件配置源,支持读取和写入 XML 格式的配置文件

internal sealed class XmlFileCfgSource : Apq.Cfg.Sources.File.FileCfgSourceBase, Apq.Cfg.Sources.IWritableCfgSource, Apq.Cfg.Sources.ICfgSource

Inheritance System.Object 🡒 Apq.Cfg.Sources.File.FileCfgSourceBase 🡒 XmlFileCfgSource

Implements Apq.Cfg.Sources.IWritableCfgSource, Apq.Cfg.Sources.ICfgSource

Constructors
XmlFileCfgSource(string, int, bool, bool, bool, bool) 初始化 XmlFileCfgSource 实例
Methods
ApplyChangesAsync(IReadOnlyDictionary<string,string>, CancellationToken) 应用配置更改到 XML 文件
BuildSource() 构建 Microsoft.Extensions.Configuration 的 XML 配置源
SetXmlByColonKey(XmlDocument, string, string) 根据冒号分隔的键路径设置 XML 文档中的节点值