Table of Contents

Class ApolloCfgOptions

Namespace
Apq.Cfg.Apollo
Assembly
Apq.Cfg.Apollo.dll

Apollo 配置选项

public sealed class ApolloCfgOptions
Inheritance
ApolloCfgOptions
Inherited Members

Properties

AppId

Apollo 应用 ID

public string AppId { get; set; }

Property Value

string

Cluster

集群名称,默认 "default"

public string Cluster { get; set; }

Property Value

string

ConnectTimeout

连接超时时间,默认 10 秒

public TimeSpan ConnectTimeout { get; set; }

Property Value

TimeSpan

DataFormat

配置数据格式,默认 Properties

public ApolloDataFormat DataFormat { get; set; }

Property Value

ApolloDataFormat

EnableHotReload

是否启用热重载,默认 true

public bool EnableHotReload { get; set; }

Property Value

bool

LongPollingTimeout

长轮询超时时间,默认 90 秒

public TimeSpan LongPollingTimeout { get; set; }

Property Value

TimeSpan

MetaServer

Apollo Meta Server 地址,默认 "http://localhost:8080"

public string MetaServer { get; set; }

Property Value

string

Namespaces

命名空间列表,默认 ["application"]

public string[] Namespaces { get; set; }

Property Value

string[]

Secret

访问密钥(可选,用于访问控制)

public string? Secret { get; set; }

Property Value

string