Table of Contents

Class RegisterAutomationActionAttribute<TAction>

Namespace
CMS.Automation
Assembly
CMS.Automation.dll

Registers a custom automation process action.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
public sealed class RegisterAutomationActionAttribute<TAction> : Attribute, IPreInitAttribute where TAction : IAutomationAction

Type Parameters

TAction

Type of the custom automation process action to register.

Inheritance
object
Attribute
RegisterAutomationActionAttribute<TAction>
Implements
Extension Methods

Remarks

Consider specifying the identifier in the format 'CompanyName.ModuleName.ActionName', e.g. 'Acme.Commerce.SendOrderConfirmationAction'.

Constructors

RegisterAutomationActionAttribute(string, string)

Initializes a new instance of the RegisterAutomationActionAttribute<TAction> class.

public RegisterAutomationActionAttribute(string identifier, string displayName)

Parameters

identifier string

Unique identifier of the automation action.

displayName string

Display name of the action shown in the automation builder UI.

Properties

Description

Description of the registered action shown in the automation builder.

public string Description { get; set; }

Property Value

string

DisplayName

Display name of the registered action shown in the automation builder.

public string DisplayName { get; }

Property Value

string

IconName

Icon name of the registered action.

public string IconName { get; set; }

Property Value

string

Identifier

Unique identifier of the registered action.

public string Identifier { get; }

Property Value

string

MarkedType

Type of the registered action.

public Type MarkedType { get; }

Property Value

Type

Methods

PreInit()

Registers the action definition during application pre-initialization.

public void PreInit()