Table of Contents

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

conversation AgentConversationId

The conversation holding the proposal.

user UserId

The person accepting, whose conversation it has to be.

proposedAt long

The place the proposal was written at.

cancellationToken CancellationToken

Cancels 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 proposedAt is not a written place.

PrincipalNotAuthorizedException

Thrown when the person's grant does not carry every grant the act needs; nothing is recorded.