Apq.Cfg.Env.EnvFileCfgSource.md 1.8 KB

Apq.Cfg.Env

EnvFileCfgSource Class

.env 文件配置源

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

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

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

Methods
CreatePhysicalFileProviderForEnv(string) 创建 PhysicalFileProvider,允许访问以点开头的文件(如 .env)
EscapeValue(string) 转义值中的特殊字符
NeedsQuoting(string) 检查值是否需要引号包裹
ParseEnvLine(string) 解析 .env 文件行
UnquoteValue(string) 移除值的引号并处理转义