Interface ICoreSearch
A core's implementation of various search-related activities.
Inherited Members
Namespace: StrixMusic.Sdk.CoreModels
Assembly: StrixMusic.Sdk.dll
Syntax
public interface ICoreSearch : ISearchBase, ICoreModel
Properties
| Improve this Doc View SourceSearchHistory
Contains items that the user has recently selected from the search results.
Declaration
ICoreSearchHistory? SearchHistory { get; }
Property Value
Type | Description |
---|---|
ICoreSearchHistory |
Methods
| Improve this Doc View SourceGetRecentSearchQueries(CancellationToken)
Gets the recently searched
Declaration
IAsyncEnumerable<ICoreSearchQuery> GetRecentSearchQueries(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<ICoreSearchQuery> | The recent search queries. |
GetSearchResultsAsync(string, CancellationToken)
Gets search results for a given query.
Declaration
Task<ICoreSearchResults> GetSearchResultsAsync(string query, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | query | The search query. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task<ICoreSearchResults> | A task representing the async operation. Returns ICoreSearchResults containing multiple. |