Table of Contents

Class AutomationTriggerDispatch

Namespace
CMS.Automation
Assembly
CMS.Automation.dll

Describes a single custom automation trigger dispatch passed to FireTrigger<TTrigger>(AutomationTriggerDispatch, CancellationToken).

public sealed class AutomationTriggerDispatch
Inheritance
object
AutomationTriggerDispatch
Extension Methods

Constructors

AutomationTriggerDispatch(BaseInfo)

Initializes a dispatch for a custom automation trigger that does not declare typed trigger data (a trigger extending AutomationTrigger).

public AutomationTriggerDispatch(BaseInfo objectToProcess)

Parameters

objectToProcess BaseInfo

Object the started automation process will operate on. Must be a contact.

Exceptions

ArgumentNullException

Thrown when objectToProcess is null.

ArgumentException

Thrown when objectToProcess is not a contact.

AutomationTriggerDispatch(BaseInfo, IAutomationTriggerData)

Initializes a dispatch for a custom automation trigger that declares typed trigger data (a trigger extending AutomationTrigger<TData>).

public AutomationTriggerDispatch(BaseInfo objectToProcess, IAutomationTriggerData triggerData)

Parameters

objectToProcess BaseInfo

Object the started automation process will operate on. Must be a contact.

triggerData IAutomationTriggerData

Typed payload supplied to the trigger. Must be an instance of the data type declared by the trigger's AutomationTrigger<TData> generic parameter.

Exceptions

ArgumentNullException

Thrown when objectToProcess or triggerData is null.

ArgumentException

Thrown when objectToProcess is not a contact.