Table of Contents

Interface IJobs

Namespace
Cratis.Chronicle.Jobs
Assembly
Cratis.Chronicle.dll

Defines the system for working with jobs.

public interface IJobs
Extension Methods

Methods

Delete(JobId)

Deletes the Job with the specified jobId.

Task Delete(JobId jobId)

Parameters

jobId JobId

The job id.

Returns

Task

Awaitable task.

GetJob(JobId)

Gets the Job with the specified jobId.

Task<Job?> GetJob(JobId jobId)

Parameters

jobId JobId

The job id.

Returns

Task<Job>

The job.

GetJobs()

Gets all the Jobs.

Task<IEnumerable<Job>> GetJobs()

Returns

Task<IEnumerable<Job>>

The jobs.

Resume(JobId)

Resumes the Job with the specified jobId.

Task Resume(JobId jobId)

Parameters

jobId JobId

The job id.

Returns

Task

Awaitable task.

Stop(JobId)

Stops the Job with the specified jobId.

Task Stop(JobId jobId)

Parameters

jobId JobId

The job id.

Returns

Task

Awaitable task.