Class WorkUnitExecutor
Defines an executor for WorkUnits.
Inherited Members
Namespace: DNVGL.One.Compute.WorkExecution.ExecutionModel
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public class WorkUnitExecutor : ExecutableWorkBase, IFlowModelItem, IComputationalWork
Constructors
View SourceWorkUnitExecutor(WorkUnit, IExecutableWorkBuilder)
Initializes a new instance of the WorkUnitExecutor class.
Declaration
public WorkUnitExecutor(WorkUnit workUnit, IExecutableWorkBuilder workBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| WorkUnit | workUnit | The work unit. |
| IExecutableWorkBuilder | workBuilder | The work builder. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Unable to build work from {workItem.GetType()}. |
See Also
Methods
View SourceCanExecute()
Determines whether this instance can execute.
Declaration
public override bool CanExecute()
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
See Also
View SourceProcess(object, IExecutionContext)
Processes the specified input.
Declaration
protected override object Process(object input, IExecutionContext executionContext)
Parameters
| Type | Name | Description |
|---|---|---|
| object | input | The input. |
| IExecutionContext | executionContext | The execution context. |
Returns
| Type | Description |
|---|---|
| object | Processing result. May be null. |