Class ContactGroupRebuildTaskManager
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
Manages scheduled tasks responsible for rebuilding contact groups.
[Obsolete("Class was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(29, 0)]
public static class ContactGroupRebuildTaskManager
- Inheritance
-
objectContactGroupRebuildTaskManager
Methods
DeleteScheduledTask(ContactGroupInfo)
Deletes scheduled task related to given contact group if exists.
public static void DeleteScheduledTask(ContactGroupInfo contactGroup)
Parameters
contactGroup
ContactGroupInfoContact group containing the scheduled task
Exceptions
- ArgumentNullException
contactGroup
is null
DisableScheduledTask(ContactGroupInfo)
Disables scheduled task connected to the given contact group. Does nothing when scheduled task does not exist.
public static void DisableScheduledTask(ContactGroupInfo contactGroup)
Parameters
contactGroup
ContactGroupInfoContact group containing the scheduled task
Exceptions
- ArgumentNullException
contactGroup
is null
EnableScheduledTask(ContactGroupInfo)
Enables scheduled task connected to the given contact group. If such task does not exits, creates a new one.
public static void EnableScheduledTask(ContactGroupInfo contactGroup)
Parameters
contactGroup
ContactGroupInfoContact group containing the scheduled task
Exceptions
- ArgumentNullException
contactGroup
is null
GetScheduledTask(ContactGroupInfo)
Gets the scheduled task responsible for rebuilding the given contact group.
public static ScheduledTaskConfigurationInfo GetScheduledTask(ContactGroupInfo contactGroup)
Parameters
contactGroup
ContactGroupInfoContact group
Returns
Remarks
Result is cached for 10 minutes under the key starting with "ContactGroupRebuildTaskManager".
Exceptions
- ArgumentNullException
contactGroup
is null