Class DomainSnapshot
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
SchemaVersion
Gets the schema version for snapshot format compatibility.
public const string SchemaVersion = "1.0"
Field Value
Properties
CreatedAt
Gets the timestamp when the snapshot was created.
public required DateTimeOffset CreatedAt { get; init; }
Property Value
Hash
Gets the SHA256 hash of the canonical JSON representation.
public required string Hash { get; init; }
Property Value
Manifest
Gets the domain manifest.
public required DomainManifest Manifest { get; init; }
Property Value
Name
Gets the domain name.
public required string Name { get; init; }
Property Value
Version
Gets the domain version.
public required Version Version { get; init; }
Property Value
Methods
Create(DomainManifest, string)
Creates a new snapshot from a manifest.
public static DomainSnapshot Create(DomainManifest manifest, string hash)
Parameters
manifestDomainManifestThe domain manifest to snapshot.
hashstringThe computed hash of the canonical JSON.
Returns
- DomainSnapshot
A new snapshot instance.