Class AutomationTriggerContextExtensions
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
Extension methods for AutomationTriggerContext.
public static class AutomationTriggerContextExtensions
- Inheritance
-
objectAutomationTriggerContextExtensions
Methods
GetProcessedObject(AutomationTriggerContext, CancellationToken)
Gets the ContactInfo the custom automation trigger was fired against.
public static Task<ContactInfo> GetProcessedObject(this AutomationTriggerContext context, CancellationToken cancellationToken = default)
Parameters
contextAutomationTriggerContextContext of the fired custom automation trigger.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ContactInfo>
The ContactInfo the trigger was fired against.
Exceptions
- ArgumentNullException
Thrown when
contextis null.- InvalidOperationException
Thrown when the object the trigger was fired against is not a ContactInfo.