Click or drag to resize
ValidatorEngineExtensionsCreateValidatorEngine Method
Creates a validator engine based on current executor

Namespace: FlexRule.Validation
Assembly: FlexRule.Validation (in FlexRule.Validation.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
public 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: ValidatorEngine

Usage 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