Class AgentActPerformer
- Namespace
- MailFathom.Application.Agent.Answering
- Assembly
- MailFathom.Application.dll
Carries out an act a person accepted, exactly as it was proposed.
public sealed class AgentActPerformer : IAgentActPerformer
- Inheritance
-
AgentActPerformer
- Implements
- Inherited Members
Remarks
Nothing here is new capability. Every act goes through the use case the client's own routes reach — a draft saved and then sent, an event put on the person's own calendar, a task written onto their own list — so the grant each asks for, the recipients it resolves, the governors that may refuse a send, and the outbox it lands in are the ones a person pressing send in the mail screen meets, and an event or a task arrives asserted exactly as one they typed themselves. The Agent reaches what already exists and nothing more.
It runs under the principal that accepted, never under the one the run composed under: accepting is the person's own act, so the grant the send needs is theirs at that moment rather than whatever it was when the proposal was written.
Constructors
- AgentActPerformer(AuthoredMailDrafting, AuthoredResponseDrafting, UserMailDrafts, OwnCalendar, OwnTasks)
Initializes the performer over the use cases every act is carried out through.
Methods
- KeyOf(AgentConversationId, long)
Names one proposal as the key an act carried out on its acceptance is requested under.
- PerformAsync(AgentProposedAct, string, CancellationToken)
Carries out one accepted act.
- PermissionsFor(AgentProposedAct)
Gets the grants a person has to hold for an act to be carried out on their acceptance.