Interface IObjectsRetriever
Provides methods for providing objects.
public interface IObjectsRetriever
- Extension Methods
Methods
GetObjectsAsync<T>(ObjectsRetrievalOptions<T>, CancellationToken)
Provides a collection of objects according the criteria given by retrievalParams
.
Task<ObjectsRetrievalResult<T>> GetObjectsAsync<T>(ObjectsRetrievalOptions<T> retrievalParams, CancellationToken cancellationToken)
Parameters
retrievalParams
ObjectsRetrievalOptions<T>Options of an objects retrieval. See ObjectsRetrievalOptions<T>.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ObjectsRetrievalResult<T>>
Type Parameters
T
Denotes a type of Value.
GetSelectedObjectsAsync<T>(SelectedObjectsRetrievalOptions<T>, CancellationToken)
Provides a collection of ObjectSelectorListItem<T>s which corresponds to the selected objects given by SelectedObjectsIdentifiers.
Task<IEnumerable<ObjectSelectorListItem<T>>> GetSelectedObjectsAsync<T>(SelectedObjectsRetrievalOptions<T> retrievalOptions, CancellationToken cancellationToken)
Parameters
retrievalOptions
SelectedObjectsRetrievalOptions<T>Retrieval options.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<IEnumerable<ObjectSelectorListItem<T>>>
Type Parameters
T
Denotes a type of Value.