Apq.Cfg.Apollo.ApolloCfgSource.md 2.2 KB

Apq.Cfg.Apollo

ApolloCfgSource Class

Apollo 配置源

internal sealed class ApolloCfgSource : Apq.Cfg.Sources.IWritableCfgSource, Apq.Cfg.Sources.ICfgSource, System.IDisposable

Inheritance System.Object 🡒 ApolloCfgSource

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

Properties
IsPrimaryWriter 获取是否为主要写入源,Apollo 不支持写入,此值用于标识
IsWriteable 获取是否可写,Apollo 不支持通过 API 写入配置,因此始终为 false
Level 获取配置层级,数值越大优先级越高
Methods
ApplyChangesAsync(IReadOnlyDictionary<string,string>, CancellationToken) 应用配置更改(Apollo 不支持通过 API 写入配置)
BuildSource() 构建 Microsoft.Extensions.Configuration 的配置源
Dispose() 释放资源,取消所有异步操作并释放 HTTP 客户端