Interface IExpressionValidator

Expression validator interface. Every expression validator must implement this interface.

Namespace: Mediachase.Commerce.Marketing
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public interface IExpressionValidator

Methods

Eval(String, String, IDictionary<String, Object>)

Evals the specified expression against the context passed in the dictionary.

Declaration
ValidationResult Eval(string key, string expr, IDictionary<string, object> context)
Parameters
Type Name Description
System.String key

The key. Must be a unique key identifying the current expression. It might be used for caching purpose by the engine.

System.String expr

The expression that needs to be evaluated.

System.Collections.Generic.IDictionary<System.String, System.Object> context

The context, which consists of object that will be accessible during expression evaluation.

Returns
Type Description
ValidationResult