Method ResolveAsync
- Namespace
- MailFathom.Application.Discovery.Citations
- Assembly
- MailFathom.Application.dll
ResolveAsync(IReadOnlyList<PresentationCitationTarget>, CancellationToken)
Follows every citation one request names.
public Task<IReadOnlyList<ResolvedCitation>> ResolveAsync(IReadOnlyList<PresentationCitationTarget> citations, CancellationToken cancellationToken)
Parameters
citationsIReadOnlyList<PresentationCitationTarget>What to follow, in the order the caller named them.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<IReadOnlyList<ResolvedCitation>>
One resolution per citation, in the order the request named them.
Remarks
The order is the contract, as it is for the content read this is built on: a resolution names the message it answers for and nothing else the caller sent, so position is how a caller pairs an answer with the citation it asked about. The same message cited twice is read once.
Exceptions
- ArgumentNullException
Thrown when
citationsis null.- ArgumentOutOfRangeException
Thrown when the request names no citation, or more than MaximumCitations.
- PrincipalNotAuthorizedException
Thrown when the work in hand is acting for no user.
- SensitiveContentScannerUnavailableException
Thrown when a switched-on scanner could not establish what a passage or a message carries, which refuses the resolution rather than serving it unscanned.