Method Create
- Namespace
- MailFathom.Application.Rules
- Assembly
- MailFathom.Application.dll
Create(IReadOnlyList<MailRuleDeclaration>)
Derives the identity of a rule set from the rules it declares, in the order it declares them.
public static MailRuleSetRevision Create(IReadOnlyList<MailRuleDeclaration> declarations)
Parameters
declarationsIReadOnlyList<MailRuleDeclaration>Every rule of the bound set, in declared order.
Returns
- MailRuleSetRevision
The revision the set is known by.
Remarks
A set that declares no rules has an identity too, and it is the same one on every instance that declares none. That is deliberate: a deployment which has removed its last rule is in a state a history should be able to name, rather than one with no revision at all.
Exceptions
- ArgumentNullException
Thrown when
declarationsis null.