Method AcceptAsync
- Namespace
- MailFathom.Application.Agent.Answering
- Assembly
- MailFathom.Application.dll
AcceptAsync(AgentConversationId, UserId, long, CancellationToken)
Accepts one proposal and carries it out.
public Task<long?> AcceptAsync(AgentConversationId conversation, UserId user, long proposedAt, CancellationToken cancellationToken)
Parameters
conversationAgentConversationIdThe conversation holding the proposal.
userUserIdThe person accepting, whose conversation it has to be.
proposedAtlongThe place the proposal was written at.
cancellationTokenCancellationTokenCancels the work.
Returns
- Task<long?>
The place the last answer to the proposal was written at, or null when there is no pending or failed proposal at that place this person can accept.
Exceptions
- ArgumentOutOfRangeException
Thrown when
proposedAtis not a written place.- PrincipalNotAuthorizedException
Thrown when the person's grant does not carry every grant the act needs; nothing is recorded.