Table of Contents

Class DynamicReloadOptions

Namespace
Apq.Cfg.Changes
Assembly
Apq.Cfg.dll

动态重载选项

public sealed class DynamicReloadOptions
Inheritance
DynamicReloadOptions
Inherited Members

Properties

DebounceMs

防抖时间窗口(毫秒),默认 100ms

public int DebounceMs { get; set; }

Property Value

int

EnableDynamicReload

是否启用动态重载,默认 true

public bool EnableDynamicReload { get; set; }

Property Value

bool

HistorySize

保留的变更历史记录数量(0 表示不记录),默认 0

public int HistorySize { get; set; }

Property Value

int

KeyPrefixFilters

键前缀过滤器,只监听匹配这些前缀的键变更(null 或空表示监听所有)

public IReadOnlyList<string>? KeyPrefixFilters { get; set; }

Property Value

IReadOnlyList<string>

RollbackOnError

重载失败时是否回滚到之前的配置,默认 true

public bool RollbackOnError { get; set; }

Property Value

bool

Strategy

重载策略,默认 Eager(立即重载)

public ReloadStrategy Strategy { get; set; }

Property Value

ReloadStrategy