Class DeleteInactiveContacts
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
Deletes inactive contacts. Takes a batch of 1000 which is deleted and replans itself if there are more to delete.
[Obsolete("Class was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(29, 0)]
public class DeleteInactiveContacts : IScheduledTask
- Inheritance
-
objectDeleteInactiveContacts
- Implements
- Extension Methods
Constructors
DeleteInactiveContacts()
Initializes a new instance of the DeleteInactiveContacts class.
public DeleteInactiveContacts()
Fields
IDENTIFIER
Represents the DeleteInactiveContacts identifier.
public const string IDENTIFIER = "Kentico.ScheduledTask.DeleteInactiveContacts"
Field Value
- string
Methods
Execute(ScheduledTaskConfigurationInfo)
Deletes inactive contacts. Takes a batch of 1000 which is deleted and reschedules itself if there are more to delete.
public ScheduledTaskExecutionResult Execute(ScheduledTaskConfigurationInfo task)
Parameters
task
ScheduledTaskConfigurationInfoTask to process
Returns
Execute(ScheduledTaskConfigurationInfo, CancellationToken)
Deletes inactive contacts. Takes a batch of 1000 which is deleted and reschedules itself if there are more to delete.
public Task<ScheduledTaskExecutionResult> Execute(ScheduledTaskConfigurationInfo task, CancellationToken cancellationToken)
Parameters
task
ScheduledTaskConfigurationInfoTask to process.
cancellationToken
CancellationTokenCancellation token.