Class MailAnswerBounds
- Namespace
- MailFathom.Application.Retrieval.AskMail
- Assembly
- MailFathom.Application.dll
How much of one run's outcome a single answer publishes.
public sealed record MailAnswerBounds : IEquatable<MailAnswerBounds>
- Inheritance
-
MailAnswerBounds
- Implements
- Inherited Members
Remarks
These bound the response rather than the run. What the run itself may draw out of a mailbox is EmailKnowledgeBounds, applied per lookup where the passages are built; a run makes several lookups, so neither bound implies the other and both are needed.
Both are cut rather than refused, which is the opposite of how a request bound behaves and is deliberate. A request larger than a limit is the caller's to correct, so refusing hands the decision back to them; an answer larger than a limit has already been generated and paid for, and refusing it would discard a real answer over its length. What makes cutting safe is that it is reported: a caller is told which of the two was cut instead of reading a shortened answer as a complete one.
Properties
- Default
Gets the bounds a deployment that states none receives.
- MaximumAnswerCharacters
Gets the greatest number of characters one answer may carry.
- MaximumCitations
Gets the greatest number of emails one answer may cite.
Methods
- Create(int, int)
Creates bounds, refusing values no answer could be published under.
- ToString()
Returns a string that represents the current object.