Table of Contents

Class ExportContext

Namespace
Apq.Cfg.Snapshot
Assembly
Apq.Cfg.dll

导出上下文,提供导出时的元数据和选项

public sealed class ExportContext
Inheritance
ExportContext
Inherited Members

Properties

EnvPrefix

环境变量格式的键前缀

public string? EnvPrefix { get; init; }

Property Value

string

ExportedAt

导出时间(UTC)

public DateTime ExportedAt { get; init; }

Property Value

DateTime

IncludeMetadata

是否包含元数据

public bool IncludeMetadata { get; init; }

Property Value

bool

Indented

是否缩进格式化

public bool Indented { get; init; }

Property Value

bool

KeyCount

配置键数量

public int KeyCount { get; init; }

Property Value

int

Properties

自定义属性,供自定义导出器使用

public IDictionary<string, object?> Properties { get; }

Property Value

IDictionary<string, object>