Table of Contents

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

id AgentConversationId

The identifier the conversation will be addressed by.

user UserId

Whose conversation it is, which is who may read, add to, and delete it.

now DateTimeOffset

The instant it was started, in UTC.

cancellationToken CancellationToken

Cancels 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.