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
-
objectAutomationTriggerDispatch
- 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
objectToProcessBaseInfoObject the started automation process will operate on. Must be a contact.
Exceptions
- ArgumentNullException
Thrown when
objectToProcessis null.- ArgumentException
Thrown when
objectToProcessis 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
objectToProcessBaseInfoObject the started automation process will operate on. Must be a contact.
triggerDataIAutomationTriggerDataTyped 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
objectToProcessortriggerDatais null.- ArgumentException
Thrown when
objectToProcessis not a contact.