Table of Contents

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

maxLength int

The greatest number of characters a condition may be written in.

maxNestingDepth int

The greatest depth the parsed condition may nest to.

evaluationTimeout TimeSpan

How 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.