IRuleApiEvalT Method (String, IDictionaryString, Object) |
Namespace: Casewhere.Runtime.DSL.Api
T Eval<T>( string ruleName, IDictionary<string, Object> parameters )
var ruleApi = ctx.Use<IRuleApi>(); var parameters = new Dictionary<string, object>(); parameters.Add("Username","tester"); var passed = ruleApi.Eval<int>("Demo rule vs parameter", parameters);