Table of Contents

Method PerformAsync

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

PerformAsync(AgentProposedAct, string, CancellationToken)

Carries out one accepted act.

public Task<bool> PerformAsync(AgentProposedAct act, string proposal, CancellationToken cancellationToken)

Parameters

act AgentProposedAct

The act, exactly as it was proposed.

proposal string

Names the proposal, which keys a sent act so a retried acceptance is recognizably the same request.

cancellationToken CancellationToken

Cancels the work.

Returns

Task<bool>

true when the act was carried out; false when this deployment refused it.

Remarks

A refusal is an outcome rather than a fault: a recipient the governor refuses, an account no longer served, a message past a bound, a calendar that would not take the span. Each is what the proposal ends in as failed, and the person is offered the attempt again.

Exceptions

ArgumentNullException

Thrown when act is null.