private IList<string> EvaluateVariable(Definitions.ObjectType objectType, VariablesEvaluated variables) { var securityPrincipleEntity = ((accesstoken_object)objectType).GetSecurityPrincipleEntity(); if (string.IsNullOrEmpty(securityPrincipleEntity.var_ref)) return new List<String>(new string[] { securityPrincipleEntity.Value }); var variableEvaluator = new AccessTokenVariableEvaluator(objectType, variables); var result = variableEvaluator.ProcessVariableForAllObjectEntities(); return (result == null) ? new string[] { }.ToList() : result.ToList(); }
private IList <string> EvaluateVariable(Definitions.ObjectType objectType, VariablesEvaluated variables) { var securityPrincipleEntity = ((accesstoken_object)objectType).GetSecurityPrincipleEntity(); if (string.IsNullOrEmpty(securityPrincipleEntity.var_ref)) { return(new List <String>(new string[] { securityPrincipleEntity.Value })); } var variableEvaluator = new AccessTokenVariableEvaluator(objectType, variables); var result = variableEvaluator.ProcessVariableForAllObjectEntities(); return((result == null) ? new string[] { }.ToList() : result.ToList()); }