Delete CultManagedDocument and both Document<T> openers
CultManagedDocument<T>, CultCache.Document<T> and CultNetDatabase.Document<T> had no consumer outside the tests removed with the SoA table. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
fe7e5fbe37
commit
d26f357f3e
3 changed files with 0 additions and 90 deletions
|
|
@ -848,21 +848,6 @@ namespace GameCult.Networking
|
|||
return _cache.GetByIndex<T>(alias, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Opens a reactive POCO presentation for one distributed CultCache document.
|
||||
/// </summary>
|
||||
public CultManagedDocument<T> Document<T>(CultRecordKey key) where T : class
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
return new CultManagedDocument<T>(
|
||||
key,
|
||||
() => _cache.Get<T>(key),
|
||||
async value => { await PutAsync(key, value).ConfigureAwait(false); },
|
||||
WatchRecord<T>(key)
|
||||
.Where(change => change.Document != null)
|
||||
.Select(change => change.Document!));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds or replaces a document at a specific key.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue