Method UseRegexTimeout
- Namespace
- RuleWright.Execution
- Assembly
- RuleWright.Execution.dll
UseRegexTimeout(TimeSpan)
Sets the per-match time limit for the MatchesRegex operator, overriding
DefaultRegexTimeout. Applies to both execution paths; a match that exceeds it
raises RegexMatchTimeoutException rather than
running unbounded.
public RuleWrightBuilder UseRegexTimeout(TimeSpan timeout)
Parameters
timeoutTimeSpanA positive timeout below InfiniteMatchTimeout's upper bound (about 24 days). An infinite timeout is deliberately not accepted.
Returns
Exceptions
- ArgumentOutOfRangeException
timeoutis not a positive, finite duration Regex accepts.