Caching: ClaimantFacts is a plain struct (the netstandard target has no IsExternalInit)

The previous commit does not build.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-27 07:13:55 +01:00
commit dc924da605

View file

@ -579,7 +579,19 @@ namespace GameCult.Caching
ClaimantFacts Describe(T claimant);
}
internal readonly record struct ClaimantFacts(string SchemaName, string SchemaVersion, string TypeLabel);
internal readonly struct ClaimantFacts
{
public ClaimantFacts(string schemaName, string schemaVersion, string typeLabel)
{
SchemaName = schemaName;
SchemaVersion = schemaVersion;
TypeLabel = typeLabel;
}
public string SchemaName { get; }
public string SchemaVersion { get; }
public string TypeLabel { get; }
}
// The lookup of a cacheless writer without a registry: the catalog entries the call writes.
internal sealed class CatalogEntryLookup : IClaimantLookup<CultSchemaCatalogEntry>