Table of Contents

Class DomainSnapshot

Namespace
JD.Domain.Snapshot
Assembly
JD.Domain.Snapshot.dll

Represents a snapshot of a domain manifest at a point in time.

public sealed class DomainSnapshot
Inheritance
DomainSnapshot
Inherited Members

Fields

SchemaUri

Gets the schema URI for JSON validation.

public const string SchemaUri = "https://jd.domain/schemas/snapshot-v1.json"

Field Value

string

SchemaVersion

Gets the schema version for snapshot format compatibility.

public const string SchemaVersion = "1.0"

Field Value

string

Properties

CreatedAt

Gets the timestamp when the snapshot was created.

public required DateTimeOffset CreatedAt { get; init; }

Property Value

DateTimeOffset

Hash

Gets the SHA256 hash of the canonical JSON representation.

public required string Hash { get; init; }

Property Value

string

Manifest

Gets the domain manifest.

public required DomainManifest Manifest { get; init; }

Property Value

DomainManifest

Name

Gets the domain name.

public required string Name { get; init; }

Property Value

string

Version

Gets the domain version.

public required Version Version { get; init; }

Property Value

Version

Methods

Create(DomainManifest, string)

Creates a new snapshot from a manifest.

public static DomainSnapshot Create(DomainManifest manifest, string hash)

Parameters

manifest DomainManifest

The domain manifest to snapshot.

hash string

The computed hash of the canonical JSON.

Returns

DomainSnapshot

A new snapshot instance.