Class TaskExecutionService
- Namespace
- Dynamicweb.Scheduling
- Assembly
- Dynamicweb.Core.dll
Service for managing task executions.
public sealed class TaskExecutionService
- Inheritance
-
TaskExecutionService
- Inherited Members
Methods
DeleteTaskExecutionsByTaskIds(IEnumerable<int>)
Deletes task executions by their IDs.
public void DeleteTaskExecutionsByTaskIds(IEnumerable<int> taskIds)
Parameters
taskIdsIEnumerable<int>
GetTaskExecutionsByTaskIds(IEnumerable<int>, int)
Retrieves task executions by task IDs, limiting the number of executions per task.
public IEnumerable<TaskExecution> GetTaskExecutionsByTaskIds(IEnumerable<int> taskIds, int topNExecutions)
Parameters
taskIdsIEnumerable<int>topNExecutionsint
Returns
GetTasksStatisticsByTaskIds(IEnumerable<int>)
Retrieves task statistics for the specified task IDs.
public IEnumerable<TaskStatistics> GetTasksStatisticsByTaskIds(IEnumerable<int> taskIds)
Parameters
taskIdsIEnumerable<int>
Returns
Save(TaskExecution)
Saves a task execution to the repository.
public void Save(TaskExecution taskExecution)
Parameters
taskExecutionTaskExecution