Class JobEventArgs
Job event data for a given Job.
Inherited Members
Namespace: DNVGL.One.Compute.Core.Scheduling
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public class JobEventArgs : EventArgs
Properties
View SourceJobId
Gets the job identifier.
Declaration
public string JobId { get; }
Property Value
| Type | Description |
|---|---|
| string | The job identifier. |
Message
Gets the message.
Declaration
public string Message { get; }
Property Value
| Type | Description |
|---|---|
| string | The message. |
Progress
Gets the progress as a value between 0 and 1.
Declaration
public double Progress { get; }
Property Value
| Type | Description |
|---|---|
| double | The progress. |
WorkStatus
Gets the work status.
Declaration
public WorkStatus WorkStatus { get; }
Property Value
| Type | Description |
|---|---|
| WorkStatus | The work status. |
Methods
View SourceCreateProgressChangedEvent(string, double, string)
Creates a progress changed event for a given job.
Declaration
public static JobEventArgs CreateProgressChangedEvent(string jobId, double progress, string message = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | jobId | The job identifier. |
| double | progress | The progress as a value between 0 and 1. |
| string | message | The message. |
Returns
| Type | Description |
|---|---|
| JobEventArgs | A JobEventArgs. |
CreateStatusChangedEvent(string, WorkStatus, string)
Creates the status changed event.
Declaration
public static JobEventArgs CreateStatusChangedEvent(string jobId, WorkStatus workStatus, string message = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | jobId | The job identifier. |
| WorkStatus | workStatus | The work status. |
| string | message | The message. |
Returns
| Type | Description |
|---|---|
| JobEventArgs | A JobEventArgs. |