Table of Contents

Class WebFarmTaskInfoProvider

Namespace
CMS.WebFarmSync
Assembly
CMS.WebFarmSync.dll

Class providing WebFarmTaskInfo management.

[ProviderInterface(typeof(IWebFarmTaskInfoProvider))]
public class WebFarmTaskInfoProvider : AbstractInfoProvider<WebFarmTaskInfo, WebFarmTaskInfoProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<WebFarmTaskInfo>, IInfoByNameProvider<WebFarmTaskInfo>, IBulkInfoProvider<WebFarmTaskInfo>, IWebFarmTaskInfoProvider, IInfoProvider<WebFarmTaskInfo>, IInfoByIdProvider<WebFarmTaskInfo>, IInfoByGuidProvider<WebFarmTaskInfo>
Inheritance
object
WebFarmTaskInfoProvider
Implements
Inherited Members
Extension Methods

Methods

DeleteAnonymousTasks(List<int>)

Deletes anonymous tasks.

[Obsolete("The method is no longer used by the system.")]
[ObsoleteSince(29, 2)]
public static void DeleteAnonymousTasks(List<int> taskIds = null)

Parameters

taskIds List<int>

DeleteAnonymousTasksInternal(List<int>)

Deletes anonymous tasks.

[Obsolete("The method is no longer used by the system.")]
[ObsoleteSince(29, 2)]
protected virtual void DeleteAnonymousTasksInternal(List<int> taskIds = null)

Parameters

taskIds List<int>

DeleteServerMemoryTasks(int, DateTime?)

Deletes all memory task for specified server created before given date. If server is not specified (equals zero), deletes tasks of all servers. If date is not specified, deletes tasks before current date time.

[Obsolete("Method was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(29, 6)]
public static void DeleteServerMemoryTasks(int serverId = 0, DateTime? taskCreated = null)

Parameters

serverId int

Server ID.

taskCreated DateTime?

Tasks created before this date time will be deleted. If null, current date time is used.

DeleteServerMemoryTasksInternal(int, DateTime)

Deletes all memory task for specified server created before given date. If serverId equals zero, deletes tasks of all servers.

[Obsolete("Method was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(29, 6)]
protected virtual void DeleteServerMemoryTasksInternal(int serverId, DateTime taskCreated)

Parameters

serverId int

Server ID.

taskCreated DateTime

Tasks created before this date time will be deleted.

DeleteServerTask(int, int)

Deletes the binding between task and the server.

[Obsolete("The method is no longer used by the system.")]
[ObsoleteSince(29, 6)]
public static void DeleteServerTask(int serverId, int taskId)

Parameters

serverId int

Server ID.

taskId int

Task ID.

DeleteServerTaskInternal(int, int)

Deletes the binding between task and the server.

[Obsolete("The method is no longer used by the system.")]
[ObsoleteSince(29, 5)]
protected virtual void DeleteServerTaskInternal(int serverId, int taskId)

Parameters

serverId int

ID of server

taskId int

ID of task

DeleteServerTasks(int)

Deletes all task for specified server. Deletes all tasks if the server is not specified.

[Obsolete("Method was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(29, 6)]
public static Task DeleteServerTasks(int serverId = 0)

Parameters

serverId int

Server ID.

Returns

Task

DeleteServerTasks(int, List<int>)

Deletes the bindings between given tasks and the server.

[Obsolete("Method was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(29, 6)]
public static void DeleteServerTasks(int serverId, List<int> taskIds)

Parameters

serverId int

ID of server

taskIds List<int>

ID of task

DeleteServerTasksInternal(int)

Deletes all task for specified server.

[Obsolete("Method was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(29, 6)]
protected virtual Task DeleteServerTasksInternal(int serverId)

Parameters

serverId int

Server ID.

Returns

Task