Class MailRuleSetReader
- Namespace
- MailFathom.Application.Rules
- Assembly
- MailFathom.Application.dll
Reports the rule set in force to whoever may read it.
public sealed class MailRuleSetReader
- Inheritance
-
MailRuleSetReader
- Inherited Members
Remarks
A pass reads IMailRuleSetSource directly and holds what it was given, which is the reload contract and is not what this is for. This is the operator's reading: what a caller is being told is what this deployment will do to a mailbox, which is a report of the deployment's own state and carries no mail — so it asks for the read grant, while what the rules concluded about somebody's messages is MailRuleHistory and a different one.
The reading is not asynchronous, and the rule set itself cannot fail to be produced, for the reason the source it reads gives: a candidate rule set that could not be proven usable never becomes the current one. What the reading does refuse is a caller whose grant does not carry the permission, which it raises rather than reports.
Constructors
- MailRuleSetReader(IMailRuleSetSource, AccessAuthorization)
Initializes the reading over the published rule set.
Methods
- Read()
Reads the rule set a pass starting now would run against.