Table of Contents

Class AgentProposalAcceptance

Namespace
MailFathom.Application.Agent.Answering
Assembly
MailFathom.Application.dll

Accepts a proposal the Agent made and carries out exactly the act it stands for.

public sealed class AgentProposalAcceptance
Inheritance
AgentProposalAcceptance
Inherited Members

Remarks

The acceptance is recorded before the act is carried out, and a failure after it. Recording is what makes the act once-only: the store moves a pending proposal to accepted in one conditional statement, so two presses at once produce one acceptance and one act, and the second press is refused before anything is sent. What the act then did reaches the record as the proposal moving on to failed, or as nothing further where it worked. A failed proposal is accepted again the same way, which is what trying it again is, and it is requested under the same key as the first attempt.

The act is carried out under the grant of the person accepting. Every grant it needs is required before anything is recorded, so an acceptance the person's grant could not carry out is refused rather than recorded and then failed — and the use cases the act goes through ask again, as they do for every caller.

Constructors

AgentProposalAcceptance(IAgentConversationStore, IAgentActPerformer, AccessAuthorization, ClientSignals, TimeProvider)

Initializes the use case.

Methods

AcceptAsync(AgentConversationId, UserId, long, CancellationToken)

Accepts one proposal and carries it out.