Table of Contents

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

user UserId

Whose history to search, which is the only one read.

queryText EmailSearchQueryText

The validated query.

limit int

The greatest number of conversations to return, from one to MaximumResults.

cancellationToken CancellationToken

Cancels the search.

Returns

Task<AgentConversationSearchResult>

The conversations found, best first, and the mode that ordered them.

Exceptions

ArgumentNullException

Thrown when queryText is null.

ArgumentOutOfRangeException

Thrown when limit is outside its bound.