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