Table of Contents

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

timeout TimeSpan

A positive timeout below InfiniteMatchTimeout's upper bound (about 24 days). An infinite timeout is deliberately not accepted.

Returns

RuleWrightBuilder

Exceptions

ArgumentOutOfRangeException

timeout is not a positive, finite duration Regex accepts.