Method Compile
- Namespace
- MailFathom.Infrastructure.Rules
- Assembly
- MailFathom.Infrastructure.dll
Compile(string, string?, MailRuleConditionBounds)
Reads one rule's condition under the bounds the rule set was declared with.
public MailRuleConditionCompilation Compile(string ruleName, string? conditionText, MailRuleConditionBounds bounds)
Parameters
ruleNamestringThe rule the condition belongs to, which every message names.
conditionTextstringThe condition as the operator wrote it.
boundsMailRuleConditionBoundsThe length, depth, and timeout the condition is read and run under.
Returns
- MailRuleConditionCompilation
The compiled condition, or every reason it cannot be used.
Exceptions
- ArgumentNullException
Thrown when
boundsis null.- ArgumentException
Thrown when
ruleNameis empty or whitespace.