Table of Contents

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

user UserId

Whose history to read.

limit int

The greatest number to return, at most MaximumConversationsPerListing.

cancellationToken CancellationToken

Cancels 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 limit is outside the bound.