Interface IWorkUnit
Models atomic (non-decomposable) work.
Namespace: DNVGL.One.Compute.Core.FlowModel
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IWorkUnit
Properties
View Sourcethis[string]
Gets the string with the specified property name.
Declaration
string this[string propertyName] { get; }
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | Name of the property. |
Property Value
Type | Description |
---|---|
string | The string. |
JobId
Gets the job identifier.
Declaration
string JobId { get; }
Property Value
Type | Description |
---|---|
string | The job identifier. |
ParentId
Gets the parent identifier.
Declaration
string ParentId { get; }
Property Value
Type | Description |
---|---|
string | The parent identifier. |
Remarks
Identifier of the parent WorkItem. Null if this is the root of the WorkItem hierarchy.
Request
Gets the application request.
Declaration
string Request { get; }
Property Value
Type | Description |
---|---|
string | The application request. |
Remarks
This property can be used by the client application to communicate an application specific request to the application worker. It is not used by One Compute.
TaskRole
Gets the task role of the work unit.
Declaration
TaskRoles TaskRole { get; }
Property Value
Type | Description |
---|---|
TaskRoles | The task role. |
Methods
View SourceGetInput<T>(ISerializationContext)
Gets the input for the work unit.
Declaration
T GetInput<T>(ISerializationContext serializationContext = null) where T : class
Parameters
Type | Name | Description |
---|---|---|
ISerializationContext | serializationContext | Serialization context for the retrieved data. |
Returns
Type | Description |
---|---|
T | The work unit input. |
Type Parameters
Name | Description |
---|---|
T | Input type. |
Remarks
If the retrieved type requires a serialization context, it can be provided in the optional argument.