|
| | RDList (Func< List< T >> retrieveFunc, Caching caching) |
| |
| bool | Contains (T element) |
| |
| bool | ContainsGuid (Guid guid) |
| |
| bool | ContainsName (string name) |
| |
| T | GetByGuid (Guid guid) |
| |
| T | GetByName (string name) |
| |
| new IRDList< T > | Refreshed () |
| |
| bool | TryGetByGuid (Guid guid, out T output) |
| |
| bool | TryGetByName (string name, out T output) |
| |
| void | WaitFor (Predicate< IRDList< T >> predicate, TimeSpan wait, 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.
|
| |
| new IRDList< T > | Refreshed () |
| |
| void | WaitFor (Predicate< IRDList< T >> predicate, TimeSpan wait, TimeSpan retryPeriod) |
| | Same as WaitFor in ICachedList{T} but with an IRDList as predicate input. Provided for convenience.
|
| |
| bool | Contains (T element) |
| |
| bool | ContainsGuid (Guid guid) |
| |
| bool | ContainsName (string name) |
| |
| T | GetByGuid (Guid guid) |
| |
| T | GetByName (string name) |
| | Get the first element with Name == name
|
| |
| bool | TryGetByGuid (Guid guid, out T output) |
| |
| bool | TryGetByName (string name, out T output) |
| | Try to get the first element with Name == name
|
| |
- Type Constraints
-
| T | : | class | |
| T | : | IRedDotObject | |
Definition at line 23 of file RDList.cs.
| erminas.SmartAPI.Utils.CachedCollections.RDList< T >.RDList |
( |
Func< List< T >> |
retrieveFunc, |
|
|
Caching |
caching |
|
) |
| |
| erminas.SmartAPI.Utils.CachedCollections.RDList< T >.RDList |
( |
Caching |
caching | ) |
|
|
protected |
| bool erminas.SmartAPI.Utils.CachedCollections.RDList< T >.Contains |
( |
T |
element | ) |
|
| bool erminas.SmartAPI.Utils.CachedCollections.RDList< T >.ContainsGuid |
( |
Guid |
guid | ) |
|
| bool erminas.SmartAPI.Utils.CachedCollections.RDList< T >.ContainsName |
( |
string |
name | ) |
|
| T erminas.SmartAPI.Utils.CachedCollections.RDList< T >.GetByGuid |
( |
Guid |
guid | ) |
|
| T erminas.SmartAPI.Utils.CachedCollections.RDList< T >.GetByName |
( |
string |
name | ) |
|
| new IRDList<T> erminas.SmartAPI.Utils.CachedCollections.RDList< T >.Refreshed |
( |
| ) |
|
| bool erminas.SmartAPI.Utils.CachedCollections.RDList< T >.TryGetByGuid |
( |
Guid |
guid, |
|
|
out T |
output |
|
) |
| |
| bool erminas.SmartAPI.Utils.CachedCollections.RDList< T >.TryGetByName |
( |
string |
name, |
|
|
out T |
output |
|
) |
| |
| void erminas.SmartAPI.Utils.CachedCollections.RDList< T >.WaitFor |
( |
Predicate< IRDList< T >> |
predicate, |
|
|
TimeSpan |
wait, |
|
|
TimeSpan |
retryPeriod |
|
) |
| |
The documentation for this class was generated from the following file: