Adding
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user