Class Job

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

Represents the state of a job.

public class Job
Inheritance
Job
Inherited Members
Extension Methods

Constructors

Job(IEventStore)

Represents the state of a job.

public Job(IEventStore eventStore)

Parameters

eventStore IEventStore

The IEventStore this job belongs to.

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()

Gets the job steps for this job.

public Task<IEnumerable<JobStep>> GetJobSteps()

Returns

Task<IEnumerable<JobStep>>

Collection of JobStep.