Class Job
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
IEventStoreThe IEventStore.
Properties
Created
Gets or sets when job was created.
public DateTimeOffset Created { get; set; }
Property Value
Details
Gets or sets the details for a job.
public JobDetails Details { get; set; }
Property Value
Id
Gets or sets the unique identifier for the job.
public JobId Id { get; set; }
Property Value
Progress
Gets or sets the JobProgress.
public JobProgress Progress { get; set; }
Property Value
Status
Gets or sets the status of the job.
public JobStatus Status { get; set; }
Property Value
StatusChanges
Gets or sets collection of status changes that happened to the job.
public IEnumerable<JobStatusChanged> StatusChanges { get; set; }
Property Value
Type
Gets or sets the type of the job.
public JobType Type { get; set; }
Property Value
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.