Make CultCache hydration subscription-shaped
This commit is contained in:
parent
54e2e69ff7
commit
085e177742
8 changed files with 554 additions and 72 deletions
|
|
@ -26,13 +26,7 @@ namespace GameCult.Mesh
|
|||
throw new ArgumentNullException(nameof(documentTypes));
|
||||
}
|
||||
|
||||
var registry = new CultDocumentRegistry();
|
||||
foreach (var documentType in DistinctDocumentTypes(documentTypes))
|
||||
{
|
||||
registry.GetRequired(documentType);
|
||||
}
|
||||
|
||||
return registry;
|
||||
return CultDocumentRegistry.ForTypes(DistinctDocumentTypes(documentTypes));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue