protected void Notify(OperatorBase op, string message) { try { var warning = this.Warning; if (warning != null) { warning(op, message); } } catch { } }
public void OnWarn(OperatorBase op, string message) { _actualMessages.Add(message); }
/** * Constructor * @param operator The operator that will be executed when the expression is evaluated. * @param operands The parameters that will be used by the operator when the expression is evaluated. */ public OperationPolicyExpression(OperatorBase pOperator, IEnumerable<IPolicyExpression> operands) { this.Operator = pOperator; this.Operands = new List<IPolicyExpression>(operands); }