Class ConfigChangeEvent
配置变更事件
public sealed class ConfigChangeEvent
- Inheritance
-
ConfigChangeEvent
- Inherited Members
Constructors
ConfigChangeEvent(IReadOnlyDictionary<string, ConfigChange>)
public ConfigChangeEvent(IReadOnlyDictionary<string, ConfigChange> changes)
Parameters
changesIReadOnlyDictionary<string, ConfigChange>
ConfigChangeEvent(IReadOnlyDictionary<string, ConfigChange>, DateTimeOffset, Guid?)
public ConfigChangeEvent(IReadOnlyDictionary<string, ConfigChange> changes, DateTimeOffset timestamp, Guid? batchId = null)
Parameters
changesIReadOnlyDictionary<string, ConfigChange>timestampDateTimeOffsetbatchIdGuid?
Properties
BatchId
变更批次的唯一标识符,便于追踪和日志记录
public Guid BatchId { get; }
Property Value
Changes
变更的配置项集合
public IReadOnlyDictionary<string, ConfigChange> Changes { get; }
Property Value
Timestamp
变更发生的时间戳
public DateTimeOffset Timestamp { get; }