Table of Contents

Method TryDeleteAsync

Namespace
MailFathom.Application.Agent.Conversations
Assembly
MailFathom.Application.dll

TryDeleteAsync(AgentConversationId, UserId, CancellationToken)

Removes a conversation this person holds, and everything it held.

Task<bool> TryDeleteAsync(AgentConversationId id, UserId user, CancellationToken cancellationToken)

Parameters

id AgentConversationId

The conversation to remove.

user UserId

The person the caller was admitted for.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<bool>

true when a conversation was removed; false where this person has no such conversation.

Remarks

Every entry goes with the conversation, which is what makes the person's own erasure of one conversation a single statement — and the same cascade is why their whole record going takes all of them.