Table of Contents

Interface IJobService

Namespace
Oqtane.Services
Assembly
Oqtane.Client.dll

Service to manage jobs (Job)

public interface IJobService

Methods

AddJobAsync(Job)

Adds a new job

Task<Job> AddJobAsync(Job job)

Parameters

job Job

Returns

Task<Job>

DeleteJobAsync(int)

Delete an existing job

Task DeleteJobAsync(int jobId)

Parameters

jobId int

Returns

Task

GetJobAsync(int)

Return a specific job

Task<Job> GetJobAsync(int jobId)

Parameters

jobId int

Returns

Task<Job>

GetJobsAsync()

Returns a list of all jobs

Task<List<Job>> GetJobsAsync()

Returns

Task<List<Job>>

StartJobAsync(int)

Starts the given job

Task StartJobAsync(int jobId)

Parameters

jobId int

Returns

Task

StopJobAsync(int)

Stops the given job

Task StopJobAsync(int jobId)

Parameters

jobId int

Returns

Task

UpdateJobAsync(Job)

Updates an existing job

Task<Job> UpdateJobAsync(Job job)

Parameters

job Job

Returns

Task<Job>