Method SearchAsync
- Namespace
- MailFathom.Application.Agent.Search
- Assembly
- MailFathom.Application.dll
SearchAsync(UserId, EmailSearchQueryText, int, CancellationToken)
Searches one person's conversations.
public Task<AgentConversationSearchResult> SearchAsync(UserId user, EmailSearchQueryText queryText, int limit, CancellationToken cancellationToken)
Parameters
userUserIdWhose history to search, which is the only one read.
queryTextEmailSearchQueryTextThe validated query.
limitintThe greatest number of conversations to return, from one to MaximumResults.
cancellationTokenCancellationTokenCancels the search.
Returns
- Task<AgentConversationSearchResult>
The conversations found, best first, and the mode that ordered them.
Exceptions
- ArgumentNullException
Thrown when
queryTextis null.- ArgumentOutOfRangeException
Thrown when
limitis outside its bound.