Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IScheduleTaskService.cs

using Nop.Core.Domain.ScheduleTasks;

namespace Nop.Services.ScheduleTasks;

/// 
/// Task service interface
/// 
public partial interface IScheduleTaskService
{
    /// 
    /// Deletes a task
    /// 
    /// Task
    Task DeleteTaskAsync(ScheduleTask task);

    /// 
    /// Gets a task
    /// 
    /// Task identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the schedule task
    /// 
    Task GetTaskByIdAsync(int taskId);

    /// 
    /// Gets a task by its type
    /// 
    /// Task type
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the schedule task
    /// 
    Task GetTaskByTypeAsync(string type);

    /// 
    /// Gets all tasks
    /// 
    /// A value indicating whether to show hidden records
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the list of schedule task
    /// 
    Task> GetAllTasksAsync(bool showHidden = false);

    /// 
    /// Inserts a task
    /// 
    /// Task
    Task InsertTaskAsync(ScheduleTask task);

    /// 
    /// Updates the task
    /// 
    /// Task
    Task UpdateTaskAsync(ScheduleTask task);
}