18 lines
754 B
C#
18 lines
754 B
C#
using Nop.Core.Domain.ScheduleTasks;
|
|
|
|
namespace Nop.Services.ScheduleTasks;
|
|
|
|
/// <summary>
|
|
/// Schedule task runner interface
|
|
/// </summary>
|
|
public partial interface IScheduleTaskRunner
|
|
{
|
|
/// <summary>
|
|
/// Executes the task
|
|
/// </summary>
|
|
/// <param name="scheduleTask">Schedule task</param>
|
|
/// <param name="forceRun">Force run</param>
|
|
/// <param name="throwException">A value indicating whether exception should be thrown if some error happens</param>
|
|
/// <param name="ensureRunOncePerPeriod">A value indicating whether we should ensure this task is run once per run period</param>
|
|
Task ExecuteAsync(ScheduleTask scheduleTask, bool forceRun = false, bool throwException = false, bool ensureRunOncePerPeriod = true);
|
|
} |