Method Create
- Namespace
- MailFathom.Application.Rules.Conditions
- Assembly
- MailFathom.Application.dll
Create(int, int, TimeSpan)
Creates bounds, refusing any value that would leave a condition unbounded or unwritable.
public static MailRuleConditionBounds Create(int maxLength, int maxNestingDepth, TimeSpan evaluationTimeout)
Parameters
maxLengthintThe greatest number of characters a condition may be written in.
maxNestingDepthintThe greatest depth the parsed condition may nest to.
evaluationTimeoutTimeSpanHow long one condition may take to evaluate.
Returns
- MailRuleConditionBounds
The bounds every condition of a rule set is read and run under.
Exceptions
- ArgumentOutOfRangeException
Thrown when a bound is not positive.