Rename legacy runtime cache
This commit is contained in:
parent
60b2d48630
commit
742bb69d43
6 changed files with 28 additions and 27 deletions
|
|
@ -78,21 +78,21 @@ public class DatabaseLinkBase
|
|||
public Guid LinkID;
|
||||
|
||||
[IgnoreMember]
|
||||
private static CultCache LegacyCatalogCache { get; set; }
|
||||
private static LegacyCatalogCache CatalogCache { get; set; }
|
||||
|
||||
protected static T ResolveLegacyCatalog<T>(Guid linkId) where T : DatabaseEntry
|
||||
{
|
||||
if (LegacyCatalogCache == null)
|
||||
if (CatalogCache == null)
|
||||
throw new InvalidOperationException("Legacy DatabaseLink resolution is not bound. Open LegacyCatalogBoundary before reading legacy catalog object graphs.");
|
||||
|
||||
return LegacyCatalogCache.Get<T>(linkId);
|
||||
return CatalogCache.Get<T>(linkId);
|
||||
}
|
||||
|
||||
public static void BindLegacyCatalog(CultCache cache)
|
||||
public static void BindLegacyCatalog(LegacyCatalogCache cache)
|
||||
{
|
||||
if (cache == null) throw new ArgumentNullException(nameof(cache));
|
||||
|
||||
LegacyCatalogCache = cache;
|
||||
CatalogCache = cache;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue