Table of Contents

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

TTrigger

Type of the custom automation trigger to register.

Inheritance
object
Attribute
RegisterAutomationTriggerAttribute<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

identifier string

Unique identifier of the automation trigger.

displayName string

Display 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()