Class MacroService
- Namespace
- Dynamicweb.Extensibility.Macros
- Assembly
- Dynamicweb.Core.dll
The service that handles and evaluates macros used in code, i.e. smart searches and indexing engine.
public class MacroService
- Inheritance
-
MacroService
- Inherited Members
Fields
ActionSplitChar
The action split character
public const char ActionSplitChar = ':'
Field Value
Properties
SupportedActions
Gets the supported actions.
public static IEnumerable<MacroAction> SupportedActions { get; }
Property Value
- IEnumerable<MacroAction>
The supported actions.
Methods
Evaluate(string)
Evaluates the specified action. Format: "{Name}:{Action}", where Name is the name of the Macro and Action is the action for the Macro to evaluate.
public static object? Evaluate(string macroActionId)
Parameters
macroActionId
stringThe macro action id to evaluate. Format: "{Name}:{Action}", where Name is the name of the Macro and Action is the action for the Macro to evaluate.