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
idAgentConversationIdThe conversation to remove.
userUserIdThe person the caller was admitted for.
cancellationTokenCancellationTokenCancels the write.
Returns
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.