YAML 文件配置源,支持读取和写入 YAML 格式的配置文件
internal sealed class YamlFileCfgSource : Apq.Cfg.Sources.File.FileCfgSourceBase, Apq.Cfg.Sources.IWritableCfgSource, Apq.Cfg.Sources.ICfgSource
Inheritance System.Object 🡒 Apq.Cfg.Sources.File.FileCfgSourceBase 🡒 YamlFileCfgSource
Implements Apq.Cfg.Sources.IWritableCfgSource, Apq.Cfg.Sources.ICfgSource
| Constructors | |
|---|---|
| YamlFileCfgSource(string, int, bool, bool, bool, bool) | 初始化 YamlFileCfgSource 实例 |
| Methods | |
|---|---|
| ApplyChangesAsync(IReadOnlyDictionary<string,string>, CancellationToken) | 应用配置更改到 YAML 文件 |
| BuildSource() | 构建 Microsoft.Extensions.Configuration 的 YAML 配置源 |
| SetYamlByColonKey(YamlMappingNode, string, string) | 根据冒号分隔的键路径设置 YAML 映射节点中的值 |