Table of Contents

Interface IJobRepository

Namespace
JobFlow.Core.Jobs
Assembly
JobFlow.Core.dll
public interface IJobRepository : IBaseRepository
Inherited Members
Extension Methods

Methods

Add(Job)

void Add(Job job)

Parameters

job Job

CheckParentComplete(Job)

Task<Guid?> CheckParentComplete(Job childJob)

Parameters

childJob Job

Returns

Task<Guid?>

GetAttachments(Job)

IEnumerable<AttachmentJob> GetAttachments(Job job)

Parameters

job Job

Returns

IEnumerable<AttachmentJob>

GetChildren<T>(ContainerJob)

IEnumerable<T> GetChildren<T>(ContainerJob job) where T : Job

Parameters

job ContainerJob

Returns

IEnumerable<T>

Type Parameters

T

GetFullJob<T>(Guid, JobIncludeFlags)

T GetFullJob<T>(Guid jobId, JobIncludeFlags includeFlags = JobIncludeFlags.None) where T : Job

Parameters

jobId Guid
includeFlags JobIncludeFlags

Returns

T

Type Parameters

T

GetJobData(Job)

Task<JsonElement?> GetJobData(Job job)

Parameters

job Job

Returns

Task<JsonElement?>

GetJob<T>(Guid)

T GetJob<T>(Guid jobId) where T : Job

Parameters

jobId Guid

Returns

T

Type Parameters

T

GetParent<T>(Job)

T GetParent<T>(Job childJob) where T : Job

Parameters

childJob Job

Returns

T

Type Parameters

T

Remove(Job)

void Remove(Job job)

Parameters

job Job

RemoveAttachment(Job, AttachmentJob)

void RemoveAttachment(Job job, AttachmentJob attachment)

Parameters

job Job
attachment AttachmentJob