Table of Contents

Class AutomationProcessContextExtensions

Namespace
CMS.ContactManagement
Assembly
CMS.ContactManagement.dll

Extension methods for AutomationProcessContext.

public static class AutomationProcessContextExtensions
Inheritance
object
AutomationProcessContextExtensions

Methods

GetProcessedObject(AutomationProcessContext, CancellationToken)

Gets the ContactInfo currently being processed by the automation.

public static Task<ContactInfo> GetProcessedObject(this AutomationProcessContext context, CancellationToken cancellationToken = default)

Parameters

context AutomationProcessContext

Context of the automation process executing the action.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ContactInfo>

The processed ContactInfo.

Exceptions

ArgumentNullException

Thrown when context is null.

InvalidOperationException

Thrown when the processed object is not a ContactInfo.