Table of Contents

Class ConfigChangeEvent

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

配置变更事件

public sealed class ConfigChangeEvent
Inheritance
ConfigChangeEvent
Inherited Members

Constructors

ConfigChangeEvent(IReadOnlyDictionary<string, ConfigChange>)

public ConfigChangeEvent(IReadOnlyDictionary<string, ConfigChange> changes)

Parameters

changes IReadOnlyDictionary<string, ConfigChange>

ConfigChangeEvent(IReadOnlyDictionary<string, ConfigChange>, DateTimeOffset, Guid?)

public ConfigChangeEvent(IReadOnlyDictionary<string, ConfigChange> changes, DateTimeOffset timestamp, Guid? batchId = null)

Parameters

changes IReadOnlyDictionary<string, ConfigChange>
timestamp DateTimeOffset
batchId Guid?

Properties

BatchId

变更批次的唯一标识符,便于追踪和日志记录

public Guid BatchId { get; }

Property Value

Guid

Changes

变更的配置项集合

public IReadOnlyDictionary<string, ConfigChange> Changes { get; }

Property Value

IReadOnlyDictionary<string, ConfigChange>

Timestamp

变更发生的时间戳

public DateTimeOffset Timestamp { get; }

Property Value

DateTimeOffset