Table of Contents

Class ActivityInitializerExtensions

Namespace
CMS.Activities
Assembly
CMS.Activities.dll

Provides extension methods for IActivityInitializer for specifying the info's fields. These methods are designed to be used as chained calls.

public static class ActivityInitializerExtensions
Inheritance
object
ActivityInitializerExtensions

Methods

WithChannelId(IActivityInitializer, int)

Extends the provided activityInitializer with channelId.

public static IActivityInitializer WithChannelId(this IActivityInitializer activityInitializer, int channelId)

Parameters

activityInitializer IActivityInitializer

Initializer to extend

channelId int

Channel id to be saved in activityInitializer

Returns

IActivityInitializer

Extended activityInitializer

WithContactId(IActivityInitializer, int)

Extends the provided activityInitializer with contactId.

public static IActivityInitializer WithContactId(this IActivityInitializer activityInitializer, int contactId)

Parameters

activityInitializer IActivityInitializer

Initializer to extend

contactId int

Contact id to be saved in activityInitializer

Returns

IActivityInitializer

Extended activityInitializer

WithTrackedWebsiteId(IActivityInitializer, int)

Extends the provided activityInitializer with trackedWebsiteID.

public static IActivityInitializer WithTrackedWebsiteId(this IActivityInitializer activityInitializer, int trackedWebsiteID)

Parameters

activityInitializer IActivityInitializer

Initializer to extend.

trackedWebsiteID int

Tracked website ID to be saved in activityInitializer.

Returns

IActivityInitializer

Extended activityInitializer.

WithUrl(IActivityInitializer, string)

Extends the provided activityInitializer with url.

public static IActivityInitializer WithUrl(this IActivityInitializer activityInitializer, string url)

Parameters

activityInitializer IActivityInitializer

Initializer to extend

url string

URL to be saved in activityInitializer

Returns

IActivityInitializer

Extended activityInitializer