Files
2026-03-24 15:26:03 -05:00

18 lines
890 B
C#

using System.Collections.Generic;
namespace LCU.Api.Internal.Dispatcher.Services;
public interface IWorkItemService
{
Task<WorkItem> GetByIdAsync(int workItemId);
Task<IEnumerable<WorkItem>> GetByJobIdAsync(int jobId);
Task<IEnumerable<WorkItem>> GetByJobIdWithExecutionsAsync(int jobId);
Task<WorkItem> GetFirstOrDefaultWorkItemByJobId(int jobId);
Task<WorkItem> GetNextWorkItemByJobId(int jobId, int currentWorkItemOrder);
void SaveList(ICollection<WorkItem> workItems);
Task<ICollection<WorkItem>> PopulateActionFieldsAndUpdateList(ICollection<WorkItem> workItems);
Task<WorkItem> ResetCanceledJobCounter(WorkItem workItem);
Task<WorkItem> IncreaseCanceledJobCounter(WorkItem workItem);
Task<WorkItem> UpdateAsync(WorkItem workItem);
Task DeleteList(ICollection<WorkItem> workItems);
WorkItem PopulateActionFields(WorkItem workItem);
}