Restore CultCache.TryGet<T>: the audit missed AquaSynth's call
The Cut 2 subtraction audit listed TryGet<T> as unused, but AquaSynth\src\AquaSynth.Core\CultCachePatchDocument.cs:104 calls cache.TryGet(key, out CultCachePatchDocument? document). The map's grep matched only TryGetByName/TryGetByIndex, so the call was missed and AquaSynth.Core, AquaSynth.Faust, AquaSynth.Dsl.Tests and AquaSynthDaemon stopped compiling against85f2089. The method returns with the signature it had ate9b91c1. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
bb10c8241b
commit
946e8fcc2d
1 changed files with 6 additions and 0 deletions
|
|
@ -1322,6 +1322,12 @@ namespace GameCult.Caching
|
|||
return Get(key) as T;
|
||||
}
|
||||
|
||||
public bool TryGet<T>(CultRecordKey key, out T? document) where T : class
|
||||
{
|
||||
document = Get<T>(key);
|
||||
return document != null;
|
||||
}
|
||||
|
||||
public IEnumerable<T> GetAll<T>() where T : class
|
||||
{
|
||||
lock (_stateGate)
|
||||
|
|
|
|||
Loading…
Reference in a new issue