The default implementation of a IInteractorProvider.
More...
|
virtual void | Add (TInteractor interactor) |
| Adds the specified interactor to the repository. More...
|
|
virtual void | Remove (string interactorId) |
| Removes the interactor with the specified identifier from the cache. More...
|
|
bool | TryGet (string id, out IInteractor interactor) |
| Tries to resolve an interactor using the interactor's identifier. More...
|
|
void | Clear () |
| Clears the repository. More...
|
|
IEnumerable< TInteractor > | Find (Func< TInteractor, bool > predicate) |
| Returns all interactors in the repository that match the specified predicate. More...
|
|
The default implementation of a IInteractorProvider.
◆ Add()
virtual void Add |
( |
TInteractor |
interactor | ) |
|
|
inlinevirtual |
Adds the specified interactor to the repository.
- Parameters
-
interactor | The interactor to add. |
- Exceptions
-
System.ArgumentException | Trying to add interactor already in repository. |
◆ Remove()
virtual void Remove |
( |
string |
interactorId | ) |
|
|
inlinevirtual |
Removes the interactor with the specified identifier from the cache.
- Parameters
-
interactorId | The interactor identifier for the interactor to remove. |
◆ TryGet()
Tries to resolve an interactor using the interactor's identifier.
- Parameters
-
id | The interactor's identifier. |
interactor | The interactor. |
- Returns
true
if the interactor was found; otherwise, false
.
◆ Clear()
◆ Find()
IEnumerable<TInteractor> Find |
( |
Func< TInteractor, bool > |
predicate | ) |
|
|
inline |
Returns all interactors in the repository that match the specified predicate.
- Parameters
-
predicate | A function to test each interactor for a condition. |
- Returns
- All interactors matching the predicate.
The documentation for this class was generated from the following file: