Table of Contents

Class AutomationTriggerContextExtensions

Namespace
CMS.ContactManagement
Assembly
CMS.ContactManagement.dll

Extension methods for AutomationTriggerContext.

public static class AutomationTriggerContextExtensions
Inheritance
object
AutomationTriggerContextExtensions

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

context AutomationTriggerContext

Context of the fired custom automation trigger.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ContactInfo>

The ContactInfo the trigger was fired against.

Exceptions

ArgumentNullException

Thrown when context is null.

InvalidOperationException

Thrown when the object the trigger was fired against is not a ContactInfo.