|
| 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.
|
|
Definition at line 22 of file CachedList.cs.
erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.CachedList |
( |
Func< List< T >> |
retrieveFunc, |
|
|
Caching |
caching |
|
) |
| |
erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.CachedList |
( |
Caching |
caching | ) |
|
|
protected |
void erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.EnsureListIsLoaded |
( |
| ) |
|
|
protected |
T erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.GetByPosition |
( |
int |
pos | ) |
|
IEnumerator<T> erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.GetEnumerator |
( |
| ) |
|
virtual void erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.InvalidateCache |
( |
| ) |
|
|
virtual |
void erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.Refresh |
( |
| ) |
|
ICachedList<T> erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.Refreshed |
( |
| ) |
|
void erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.WaitFor |
( |
Predicate< ICachedList< T >> |
predicate, |
|
|
TimeSpan |
wait, |
|
|
TimeSpan |
retryPeriod |
|
) |
| |
int erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.Count |
|
get |
virtual bool erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.IsCachingEnabled |
|
getset |
virtual List<T> erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.List |
|
getsetprotected |
Func<List<T> > erminas.SmartAPI.Utils.CachedCollections.CachedList< T >.RetrieveFunc |
|
getsetprotected |
The documentation for this class was generated from the following file: