Table of Contents

Class Jobs

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

Represents an implementation of IJobs.

public class Jobs : IJobs
Inheritance
Jobs
Implements
Inherited Members
Extension Methods

Constructors

Jobs(IEventStore)

Represents an implementation of IJobs.

public Jobs(IEventStore eventStore)

Parameters

eventStore IEventStore

The IEventStore.

Methods

Delete(JobId)

Deletes the Job with the specified jobId.

public Task Delete(JobId jobId)

Parameters

jobId JobId

The job id.

Returns

Task

Awaitable task.

GetJob(JobId)

Gets the Job with the specified jobId.

public Task<Job?> GetJob(JobId jobId)

Parameters

jobId JobId

The job id.

Returns

Task<Job>

The job.

GetJobs()

Gets all the Jobs.

public Task<IEnumerable<Job>> GetJobs()

Returns

Task<IEnumerable<Job>>

The jobs.

Resume(JobId)

Resumes the Job with the specified jobId.

public Task Resume(JobId jobId)

Parameters

jobId JobId

The job id.

Returns

Task

Awaitable task.

Stop(JobId)

Stops the Job with the specified jobId.

public Task Stop(JobId jobId)

Parameters

jobId JobId

The job id.

Returns

Task

Awaitable task.