Class RegisterAutomationTriggerAttribute<TTrigger>
- Namespace
- CMS.Automation
- Assembly
- CMS.Automation.dll
Registers a custom automation trigger.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
public sealed class RegisterAutomationTriggerAttribute<TTrigger> : Attribute, IPreInitAttribute where TTrigger : IAutomationTrigger
Type Parameters
TTriggerType of the custom automation trigger to register.
- Inheritance
-
objectAttributeRegisterAutomationTriggerAttribute<TTrigger>
- Implements
- Extension Methods
Remarks
Consider specifying the identifier in the format 'CompanyName.ModuleName.TriggerName', e.g. 'Acme.Commerce.PurchaseMadeTrigger'.
Constructors
RegisterAutomationTriggerAttribute(string, string)
Initializes a new instance of the RegisterAutomationTriggerAttribute<TTrigger> class.
public RegisterAutomationTriggerAttribute(string identifier, string displayName)
Parameters
identifierstringUnique identifier of the automation trigger.
displayNamestringDisplay name of the trigger shown in the automation builder UI.
Properties
Description
Description of the registered trigger shown in the automation builder.
public string Description { get; set; }
Property Value
- string
DisplayName
Display name of the registered trigger shown in the automation builder.
public string DisplayName { get; }
Property Value
- string
IconName
Icon name of the registered trigger.
public string IconName { get; set; }
Property Value
- string
Identifier
Unique identifier of the registered trigger.
public string Identifier { get; }
Property Value
- string
MarkedType
Type of the registered trigger.
public Type MarkedType { get; }
Property Value
- Type
Methods
PreInit()
Registers the trigger definition during application pre-initialization.
public void PreInit()