Table of Contents

Class ContactGroupEvaluator

Namespace
CMS.ContactManagement
Assembly
CMS.ContactManagement.dll

Task for evaluation of dynamic contact group. Contacts' membership to a contact group depends on meeting the dynamic condition.

[Obsolete("Class was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(29, 0)]
public class ContactGroupEvaluator : IScheduledTask
Inheritance
object
ContactGroupEvaluator
Implements
Extension Methods

Fields

IDENTIFIER

Represents the ContactGroupEvaluator identifier.

public const string IDENTIFIER = "Kentico.ScheduledTask.ContactGroupEvaluator"

Field Value

string

Properties

ContactGroup

Contact group. Optional, should be set if this class is used outside the scheduler.

public ContactGroupInfo ContactGroup { get; set; }

Property Value

ContactGroupInfo

ContactGroupInfoProvider

Gets the provider for ContactGroupInfo management.

protected virtual IContactGroupInfoProvider ContactGroupInfoProvider { get; }

Property Value

IContactGroupInfoProvider

Methods

Execute(ScheduledTaskConfigurationInfo)

Evaluates the membership of contacts to given contact group.

public ScheduledTaskExecutionResult Execute(ScheduledTaskConfigurationInfo task)

Parameters

task ScheduledTaskConfigurationInfo

Task to process

Returns

ScheduledTaskExecutionResult

Execute(ScheduledTaskConfigurationInfo, CancellationToken)

Evaluates the membership of contacts to given contact group.

public Task<ScheduledTaskExecutionResult> Execute(ScheduledTaskConfigurationInfo task, CancellationToken cancellationToken)

Parameters

task ScheduledTaskConfigurationInfo

Task to process.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ScheduledTaskExecutionResult>

Run()

Starts contact groups members evaluation.

public void Run()