Apq.Cfg.Sources.ICfgSource.md 1.4 KB

Apq.Cfg

Apq.Cfg.Sources

ICfgSource Interface

配置源接口,定义了配置源的基本行为

public interface ICfgSource

Derived
EnvVarsCfgSource
FileCfgSourceBase
IWritableCfgSource
JsonFileCfgSource

Properties
IsPrimaryWriter 获取是否为主要写入源,用于标识当多个可写源存在时的主要写入目标
IsWriteable 获取是否可写,指示该配置源是否支持写入操作
Level 获取配置层级,数值越大优先级越高
Methods
BuildSource() 构建 Microsoft.Extensions.Configuration 的配置源