Convenience class for a IndexedRDList with an index on the Name attribute GetByName and TryGetByName both use the index to access the elements.
More...
|
| NameIndexedRDList (Func< List< T >> retrieveFunc, Caching caching) |
|
override T | GetByName (string name) |
|
new NameIndexedRDList< T > | Refreshed () |
|
override bool | TryGetByName (string name, out T output) |
|
| IndexedRDList (Func< List< T >> retrieveFunc, Func< T, TK > indexFunc, Caching caching) |
|
bool | Contains (T element) |
|
bool | ContainsGuid (Guid guid) |
|
bool | ContainsName (string name) |
|
virtual T | GetByGuid (Guid guid) |
|
new IIndexedRDList< TK, T > | Refreshed () |
|
virtual bool | TryGetByGuid (Guid guid, out T output) |
|
void | WaitFor (Func< IIndexedRDList< TK, T >, bool > predicate, TimeSpan maxWait, TimeSpan retryPeriod) |
|
void | WaitFor (Predicate< IRDList< T >> predicate, TimeSpan maxWait, TimeSpan retryPeriod) |
|
| IndexedCachedList (Func< List< T >> retrieveFunc, Func< T, TK > indexFunc, Caching caching) |
|
bool | ContainsKey (TK key) |
|
T | Get (TK key) |
|
new IIndexedCachedList< TK, T > | Refreshed () |
|
bool | TryGet (TK key, out T obj) |
|
void | WaitFor (Predicate< IIndexedCachedList< TK, T >> predicate, TimeSpan maxWait, TimeSpan retryPeriod) |
|
| CachedList (Func< List< T >> retrieveFunc, Caching caching) |
|
T | GetByPosition (int pos) |
|
IEnumerator< T > | GetEnumerator () |
|
virtual void | InvalidateCache () |
|
void | Refresh () |
|
ICachedList< T > | Refreshed () |
|
void | WaitFor (Predicate< ICachedList< T >> predicate, TimeSpan wait, TimeSpan retryPeriod) |
|
T | GetByPosition (int pos) |
| Get an element of the list at a specific position.
|
|
ICachedList< T > | Refreshed () |
| Calls Refresh() and returns this.
|
|
void | WaitFor (Predicate< ICachedList< T >> predicate, TimeSpan wait, TimeSpan retryPeriod) |
| Waits until a predicate on itself becomes true. Every retry period Refresh() is called and the predicate evaluated again, until the predicate evaluates to true, or the wait timespan is exhausted.
|
|
void | InvalidateCache () |
| Clear the cache and refresh it on the next access.
|
|
void | Refresh () |
| Updates the cache immediatly.
|
|
bool | ContainsKey (TK key) |
| Check wether the index contains a specific key. If you want to get an element, if it is available, use TryGet as it is faster than a call to ContainsKey and a Get afterwards.
|
|
T | Get (TK key) |
| Get an entry with a specific key value. Throws an exception if entry could not be found.
|
|
new IIndexedCachedList< TK, T > | Refreshed () |
|
bool | TryGet (TK name, out T obj) |
| Try to get an entry with a specific key value, returns false, if entry could not be found.
|
|
void | WaitFor (Predicate< IIndexedCachedList< TK, T >> predicate, TimeSpan maxWait, TimeSpan retryPeriod) |
|
new IIndexedRDList< TK, T > | Refreshed () |
|
void | WaitFor (Func< IIndexedRDList< TK, T >, bool > predicate, TimeSpan maxWait, TimeSpan retryEverySecond) |
|
Convenience class for a IndexedRDList with an index on the Name attribute GetByName and TryGetByName both use the index to access the elements.
- Template Parameters
-
T | TypeId of the stored elements |
- Type Constraints
-
T | : | class | |
T | : | IRedDotObject | |
Definition at line 110 of file IndexedRDList.cs.