Interface IAutomationTaskService
A service that provides operations for managing newsletter mailing lists.
Namespace: DataWeb.Automation
Assembly: DataWeb.Core.dll
Syntax
public interface IAutomationTaskService
Methods
GetTaskAsync(AutomationTaskFilter, CancellationToken)
Gets the automation task that matches the specified filter.
Declaration
Task<AutomationTask> GetTaskAsync(AutomationTaskFilter filter, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AutomationTaskFilter | filter | The AutomationTaskFilter used to retrieve the automation task. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<AutomationTask> | The automation task that matches the specified filter. |
GetTasksAsync(AutomationTaskFilter, CancellationToken)
Gets all the automation tasks that match the specified filter.
Declaration
Task<IEnumerable<AutomationTask>> GetTasksAsync(AutomationTaskFilter filter, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AutomationTaskFilter | filter | The AutomationTaskFilter used to retrieve the automation tasks. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<AutomationTask>> | The automation tasks that match the specified filter. |
ResetExecutionEndDateAsync(string, CancellationToken)
Resets the execution end date for the automation task with the specified id.
Declaration
Task ResetExecutionEndDateAsync(string taskIdMaster, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | taskIdMaster | The master identifier of the task to update. |
| CancellationToken | cancellationToken | A cancellation token to observe while waiting for the task to complete. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous operation. |
SetStatusAsync(string, AutomationTaskStatus, CancellationToken)
Updates the status of the automation task with the specified id.
Declaration
Task SetStatusAsync(string taskIdMaster, AutomationTaskStatus status, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | taskIdMaster | The master identifier of the task to update. |
| AutomationTaskStatus | status | The new status to set for the task. |
| CancellationToken | cancellationToken | A cancellation token to observe while waiting for the task to complete. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous operation. |
UpdateExecutionEndDateAsync(string, CancellationToken)
Updates the execution end date for the automation task with the specified id.
Declaration
Task UpdateExecutionEndDateAsync(string taskIdMaster, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | taskIdMaster | The master identifier of the task to update. |
| CancellationToken | cancellationToken | A cancellation token to observe while waiting for the task to complete. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous operation. |
UpdateExecutionStartDateAsync(string, CancellationToken)
Updates the execution start date for the automation task with the specified id.
Declaration
Task UpdateExecutionStartDateAsync(string taskIdMaster, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | taskIdMaster | The master identifier of the task to update. |
| CancellationToken | cancellationToken | A cancellation token to observe while waiting for the task to complete. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous operation. |