Class ResolvedCitation
- Namespace
- MailFathom.Application.Discovery.Citations
- Assembly
- MailFathom.Application.dll
What following one citation produced.
public sealed record ResolvedCitation : IEquatable<ResolvedCitation>
- Inheritance
-
ResolvedCitation
- Implements
- Inherited Members
Remarks
The factories are what guarantee the shape: a private source carries nothing but the identity the caller named, a resolution carries the message it belongs to, and a place inside that message is carried by at most one of Fragment and Attachment. A citation that named a message as such resolves with neither, which is the whole of what it pointed at.
The message survives an unresolvable place deliberately, and that is what makes a citation outlive a re-cut of the mail it points at: the passage a run cited is derived data that a later chunking pass may replace, while the message it was cut from is the same message, so a reader is still taken to the correspondence rather than told the fact has no source. The one unresolvable citation carrying no message is one whose stored copy is damaged, which is the case where there was no reading to carry.
Everything reachable from a resolution except the identity and the outcome is mail content, and nothing here is logged, traced, or exported.
Properties
- Attachment
Gets the file the citation points at, or null where it points at no file or that file is gone.
- Fragment
Gets the passage the citation points at, or null where it points at no passage or that passage is gone.
- Outcome
Gets what became of the citation.
- StoredEmailId
Gets the message the citation named, which is carried whatever became of it.
Methods
- PrivateSource(StoredEmailId)
Reports a source this caller may not read.
- Resolved(CitedMessage)
Reports a citation followed to the message as such.
- Resolved(CitedMessage, CitedAttachment)
Reports a citation followed to one file a message carries.
- Resolved(CitedMessage, CitedFragment)
Reports a citation followed to one passage of a message.
- Unresolvable(CitedMessage)
Reports a message the caller may read whose cited place is no longer there.
- Unresolvable(StoredEmailId)
Reports a message the caller may read whose stored copy could not be read at all.