Table of Contents

Class JobRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class JobRepository : IJobRepository
Inheritance
JobRepository
Implements

Constructors

JobRepository(MasterDBContext, IMemoryCache)

public JobRepository(MasterDBContext context, IMemoryCache cache)

Parameters

context MasterDBContext
cache IMemoryCache

Methods

AddJob(Job)

public Job AddJob(Job job)

Parameters

job Job

Returns

Job

DeleteJob(int)

public void DeleteJob(int jobId)

Parameters

jobId int

GetJob(int)

public Job GetJob(int jobId)

Parameters

jobId int

Returns

Job

GetJob(int, bool)

public Job GetJob(int jobId, bool tracking)

Parameters

jobId int
tracking bool

Returns

Job

GetJobs()

public IEnumerable<Job> GetJobs()

Returns

IEnumerable<Job>

UpdateJob(Job)

public Job UpdateJob(Job job)

Parameters

job Job

Returns

Job