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
-
objectActivityInitializerExtensions
Methods
WithChannelId(IActivityInitializer, int)
Extends the provided activityInitializer
with channelId
.
public static IActivityInitializer WithChannelId(this IActivityInitializer activityInitializer, int channelId)
Parameters
activityInitializer
IActivityInitializerInitializer to extend
channelId
intChannel 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
IActivityInitializerInitializer to extend
contactId
intContact 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
IActivityInitializerInitializer to extend.
trackedWebsiteID
intTracked 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
IActivityInitializerInitializer to extend
url
stringURL to be saved in
activityInitializer
Returns
- IActivityInitializer
Extended
activityInitializer