Table of Contents

Class Job

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

Represents the state of a job.

public class Job
Inheritance
Job
Inherited Members

Constructors

Job(IEventStore)

Represents the state of a job.

public Job(IEventStore eventStore)

Parameters

eventStore IEventStore

The IEventStore.

Properties

Created

Gets or sets when job was created.

public DateTimeOffset Created { get; set; }

Property Value

DateTimeOffset

Details

Gets or sets the details for a job.

public JobDetails Details { get; set; }

Property Value

JobDetails

Id

Gets or sets the unique identifier for the job.

public JobId Id { get; set; }

Property Value

JobId

Progress

Gets or sets the JobProgress.

public JobProgress Progress { get; set; }

Property Value

JobProgress

Status

Gets or sets the status of the job.

public JobStatus Status { get; set; }

Property Value

JobStatus

StatusChanges

Gets or sets collection of status changes that happened to the job.

public IEnumerable<JobStatusChanged> StatusChanges { get; set; }

Property Value

IEnumerable<JobStatusChanged>

Type

Gets or sets the type of the job.

public JobType Type { get; set; }

Property Value

JobType

Methods

GetJobSteps(params JobStepStatus[])

Get the job steps for the job.

public Task<IEnumerable<JobStep>> GetJobSteps(params JobStepStatus[] statuses)

Parameters

statuses JobStepStatus[]

The JobStepStatus to filter by. If no statuses are specified, it will return for all statuses.

Returns

Task<IEnumerable<JobStep>>

Collection of JobStep.