Method TryStartAsync
- Namespace
- MailFathom.Application.Agent.Conversations
- Assembly
- MailFathom.Application.dll
TryStartAsync(AgentConversationId, UserId, DateTimeOffset, CancellationToken)
Starts a conversation for one person, with nothing in it and no name yet.
Task<bool> TryStartAsync(AgentConversationId id, UserId user, DateTimeOffset now, CancellationToken cancellationToken)
Parameters
idAgentConversationIdThe identifier the conversation will be addressed by.
userUserIdWhose conversation it is, which is who may read, add to, and delete it.
nowDateTimeOffsetThe instant it was started, in UTC.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<bool>
true when the conversation was started; false when one already exists under that identifier, or when this person already holds MaximumConversations.