Table of Contents

Class NacosCfgOptions

Namespace
Apq.Cfg.Nacos
Assembly
Apq.Cfg.Nacos.dll

Nacos 配置选项

public sealed class NacosCfgOptions
Inheritance
NacosCfgOptions
Inherited Members

Properties

AccessKey

Access Key(可选,用于阿里云 MSE)

public string? AccessKey { get; set; }

Property Value

string

ConnectTimeoutMs

连接超时时间(毫秒),默认 10000

public int ConnectTimeoutMs { get; set; }

Property Value

int

DataFormat

配置数据格式,默认 Json

public NacosDataFormat DataFormat { get; set; }

Property Value

NacosDataFormat

DataId

配置的 DataId

public string DataId { get; set; }

Property Value

string

EnableHotReload

是否启用热重载,默认 false

public bool EnableHotReload { get; set; }

Property Value

bool

Group

配置分组,默认 "DEFAULT_GROUP"

public string Group { get; set; }

Property Value

string

Namespace

命名空间 ID,默认 "public"

public string Namespace { get; set; }

Property Value

string

Password

密码(可选)

public string? Password { get; set; }

Property Value

string

ReconnectIntervalMs

重连间隔(毫秒),默认 5000

public int ReconnectIntervalMs { get; set; }

Property Value

int

SecretKey

Secret Key(可选,用于阿里云 MSE)

public string? SecretKey { get; set; }

Property Value

string

ServerAddresses

Nacos 服务地址列表,多个地址用逗号分隔,默认 "localhost:8848"

public string ServerAddresses { get; set; }

Property Value

string

Username

用户名(可选)

public string? Username { get; set; }

Property Value

string