Add CultMesh collection handles
This commit is contained in:
parent
df079f2cab
commit
eb52b56088
5 changed files with 593 additions and 0 deletions
|
|
@ -686,6 +686,33 @@ namespace GameCult.Networking
|
|||
return Task.FromResult(_cache.Get<T>(key));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all documents assignable to the requested type.
|
||||
/// </summary>
|
||||
public IEnumerable<T> GetAll<T>() where T : class
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
return _cache.GetAll<T>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a typed document by its CultName value.
|
||||
/// </summary>
|
||||
public T? GetByName<T>(string name) where T : class
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
return _cache.GetByName<T>(name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a typed document by an indexed value.
|
||||
/// </summary>
|
||||
public T? GetByIndex<T>(string alias, string value) where T : class
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
return _cache.GetByIndex<T>(alias, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Opens a reactive POCO presentation for one distributed CultCache document.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue