Table of Contents

Class DiscoveryRun

Namespace
MailFathom.Application.Discovery.Runs
Assembly
MailFathom.Application.dll

Answers one question by deriving what it asks for and retrieving what the answer rests on.

public sealed class DiscoveryRun
Inheritance
DiscoveryRun
Inherited Members

Remarks

The whole of a Discover run bar the writing down: the deployment is asked whether it answers questions at all, the question is read once into a plan, that plan is run against the mail its scope admits, and what it found is composed into the typed result a client draws. How that result reaches a client as it happens is the child that follows.

The composition is the half that has to be honest about itself. A run reads a synchronized copy, so it reports which accounts it drew on and how current each was; and every block it composes says what the correspondence does for it, down to saying that the sources do not answer the question — which is a result rather than a failure, and is what a deployment owes somebody instead of a plausible sentence nobody wrote.

A run reads mail and sends what it reads to a chat provider, so it asks for AssistantUse and MailRead together — the same two grants asking a question about mail takes on any other surface, because it is the same act.

Constructors

DiscoveryRun(MailAnsweringCapability, PlannedMailRetrieval, AccessAuthorization, SensitiveContentEgressGuard, DiscoveryCoverageReader, IMailAnsweringSpendLedger, IUserLanguages, IDiscoveryRunPlanner?, IDiscoveryResultComposer?)

Creates the use case one Discover run is performed through.

Methods

RunAsync(MailQuestion, Func<DiscoveryRetrievalProgress, Task>?, CancellationToken)

Reads the question into a plan, retrieves what that plan asks for, and composes what it found into a result.