ValidatorEngineExtensionsCreateValidatorEngine Method |
Creates a validator engine based on current executor
Namespace: FlexRule.ValidationAssembly: FlexRule.Validation (in FlexRule.Validation.dll) Version: 0.0.0.0 (0.0.0.0)
Syntaxpublic static ValidatorEngine CreateValidatorEngine(
this IActiveElementExecutor executor,
ActiveElement current,
bool newContext,
Validator validator,
Func<ValidatorExecutionContext, Validator, ValidatorEngine> builder = null
)
Parameters
- executor
- Type: FlexRuleIActiveElementExecutor
- current
- Type: FlexRuleActiveElement
Current ActiveElement that creates an engine - newContext
- Type: SystemBoolean
- validator
- Type: FlexRule.ValidationValidator
Execution plan for validator engine - builder (Optional)
- Type: SystemFuncValidatorExecutionContext, Validator, ValidatorEngine
Return Value
Type:
ValidatorEngineUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IActiveElementExecutor. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also