Carry portable schema identity on raw records
This commit is contained in:
parent
a2301b6b09
commit
c5d9435deb
6 changed files with 40 additions and 4 deletions
|
|
@ -224,6 +224,9 @@ namespace GameCult.Networking
|
|||
Document = new CultNetRawDocumentRecord
|
||||
{
|
||||
SchemaId = binding.SchemaId,
|
||||
SchemaName = descriptor.SchemaName,
|
||||
SchemaVersion = descriptor.SchemaVersion,
|
||||
SchemaContentHash = descriptor.ContentHash,
|
||||
RecordKey = handle.Key.Value,
|
||||
StoredAt = storedAt,
|
||||
PayloadEncoding = "messagepack",
|
||||
|
|
@ -292,6 +295,9 @@ namespace GameCult.Networking
|
|||
documents.Add(new CultNetRawDocumentRecord
|
||||
{
|
||||
SchemaId = binding.SchemaId,
|
||||
SchemaName = descriptor.SchemaName,
|
||||
SchemaVersion = descriptor.SchemaVersion,
|
||||
SchemaContentHash = descriptor.ContentHash,
|
||||
RecordKey = key,
|
||||
StoredAt = storedAt,
|
||||
PayloadEncoding = "messagepack",
|
||||
|
|
|
|||
|
|
@ -608,6 +608,18 @@ namespace GameCult.Networking
|
|||
/// </summary>
|
||||
[Key("schemaId")] public string SchemaId { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// Gets or sets the stable schema family name when the publisher has a typed descriptor.
|
||||
/// </summary>
|
||||
[Key("schemaName")] public string? SchemaName { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the portable versioned schema contract when the publisher has a typed descriptor.
|
||||
/// </summary>
|
||||
[Key("schemaVersion")] public string? SchemaVersion { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the canonical schema content hash when the publisher has a typed descriptor.
|
||||
/// </summary>
|
||||
[Key("schemaContentHash")] public string? SchemaContentHash { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the record key.
|
||||
/// </summary>
|
||||
[Key("recordKey")] public string RecordKey { get; set; } = string.Empty;
|
||||
|
|
|
|||
Loading…
Reference in a new issue