ActionPlaceholders
Static class in Oadm.Sdk.Actions · Oadm.Sdk.dll
The placeholders of the event rule actions (everything OADM knows about the rule, the event and the device), one list for the server (ActionPlaceholders.Fill) and the rule dialog’s placeholder panel. The values of the event come on top, by their name ({objectId}, {port}); the fixed names win over event values of the same name.
public static class ActionPlaceholdersProperties
Section titled “Properties”static IReadOnlyList<ActionPlaceholder> Fixed { get; }Every placeholder OADM fills, in the order the rule dialog lists them.
Methods
Section titled “Methods”Escape
Section titled “Escape”static string Escape(string value, PlaceholderEscape escape)Writes value for a text of the given format.
static string Fill(string? text, Func<string, string?> lookup, PlaceholderEscape escape = None)Fills every {name} that lookup knows (case-insensitive names are the caller’s choice) in one pass, so a value that contains “{…}” is never filled again; unknown names stay as they are.
Fields
Section titled “Fields”DeviceGroup
Section titled “DeviceGroup”const string DeviceGroup = "Device"Placeholders of the device.
RuleGroup
Section titled “RuleGroup”const string RuleGroup = "Rule"Placeholders of the rule and the event.