Class CachedMacroRuleTrees
- Namespace
- CMS.MacroEngine
- Assembly
- CMS.MacroEngine.dll
Cache for parsed macro conditions.
public static class CachedMacroRuleTrees
- Inheritance
-
objectCachedMacroRuleTrees
Methods
GetParsedTree(string)
Parses serialized macro (for example in a contact group) to a MacroRuleTree and saves it to cache for subsequent calls. If macro rule tree was already parsed, returns it from cache.
public static MacroRuleTree GetParsedTree(string macroCondition)
Parameters
macroCondition
stringMacro condition
Returns
- MacroRuleTree
MacroRuleTree that is parsed from
macroCondition
or taken from cache or null if it cannot be parsed
Exceptions
- ArgumentNullException
macroCondition
cannot be null