Class ApolloCfgOptions
Apollo 配置选项
public sealed class ApolloCfgOptions
- Inheritance
-
ApolloCfgOptions
- Inherited Members
Properties
AppId
Apollo 应用 ID
public string AppId { get; set; }
Property Value
Cluster
集群名称,默认 "default"
public string Cluster { get; set; }
Property Value
ConnectTimeout
连接超时时间,默认 10 秒
public TimeSpan ConnectTimeout { get; set; }
Property Value
DataFormat
配置数据格式,默认 Properties
public ApolloDataFormat DataFormat { get; set; }
Property Value
EnableHotReload
是否启用热重载,默认 true
public bool EnableHotReload { get; set; }
Property Value
LongPollingTimeout
长轮询超时时间,默认 90 秒
public TimeSpan LongPollingTimeout { get; set; }
Property Value
MetaServer
Apollo Meta Server 地址,默认 "http://localhost:8080"
public string MetaServer { get; set; }
Property Value
Namespaces
命名空间列表,默认 ["application"]
public string[] Namespaces { get; set; }
Property Value
- string[]
Secret
访问密钥(可选,用于访问控制)
public string? Secret { get; set; }