Files
parr_api/PARR.DAL/NextRunServices/INextRunService.cs

30 lines
1018 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace PARR.DAL.NextRunServices
{
public interface INextRunService
{
/// <summary>
/// Получить список TemplateId, NextRun по jobGroupId с автораспределением
/// </summary>
/// <param name="jobGroupId"></param>
/// <returns></returns>
Task<List<(Guid TemplateId, DateTimeOffset NextRun)>> GetNextRunForJobGroupWithAutoDistributionAsync(Guid jobGroupId);
/// <summary>
/// Получить NextRun по jobGroupId с расписанием ЕСПП
/// </summary>
/// <param name="jobGroupId"></param>
/// <returns></returns>
Task<DateTimeOffset> GetNextRunForJobGroupWithEsppSchedulleAsync(Guid jobGroupId);
/// <summary>
/// Получить NextRun по id шаблона
/// </summary>
/// <param name="templateId"></param>
/// <returns></returns>
Task<DateTimeOffset> GetNextRunForTemplate(Guid templateId);
}
}