Method ListAsync
- Namespace
- MailFathom.Application.Agent.Conversations
- Assembly
- MailFathom.Application.dll
ListAsync(UserId, int, CancellationToken)
Lists a person's conversations, the ones not archived before the archived ones.
Task<IReadOnlyList<AgentConversationSummary>> ListAsync(UserId user, int limit, CancellationToken cancellationToken)
Parameters
userUserIdWhose history to read.
limitintThe greatest number to return, at most MaximumConversationsPerListing.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<AgentConversationSummary>>
The lines of the history, and empty where this person has held none.
Remarks
The conversations the person is working in come first and the ones they put away come after them, each group most recently active first, so a listing cut at the bound loses an archived conversation before it loses a working one.
Exceptions
- ArgumentOutOfRangeException
Thrown when
limitis outside the bound.