Public Member Functions | List of all members
IInteractorProvider Interface Reference

Represents a provider holding instances of IInteractor. More...

Inheritance diagram for IInteractorProvider:
IInteractorRepository< TInteractor > WpfInteractorProvider< TWpfInteractor >

Public Member Functions

Task< IEnumerable< IInteractor > > FindIntersectingAsync (Rectangle rect, CancellationToken cancellationToken)
 Finds all interactors that intersects the specified Rectangle. More...
 
bool TryGet (string id, out IInteractor interactor)
 Tries to resolve an interactor using the interactor's identifier. More...
 

Detailed Description

Represents a provider holding instances of IInteractor.

Member Function Documentation

◆ FindIntersectingAsync()

Task<IEnumerable<IInteractor> > FindIntersectingAsync ( Rectangle  rect,
CancellationToken  cancellationToken 
)

Finds all interactors that intersects the specified Rectangle.

Parameters
rectThe query.
cancellationTokenThe cancellation token.
Returns
A task that represents the asynchronous operation resulting in a list of interactors.

Implemented in WpfInteractorProvider< TWpfInteractor >.

◆ TryGet()

bool TryGet ( string  id,
out IInteractor  interactor 
)

Tries to resolve an interactor using the interactor's identifier.

Parameters
idThe interactor's identifier.
interactorThe interactor.
Returns
true if the interactor was found; otherwise, false.

Implemented in WpfInteractorProvider< TWpfInteractor >.


The documentation for this interface was generated from the following file: