Class WorkUnitExecutor
Defines an executor for WorkUnits.
Inherited Members
DNVGL.One.Compute.Core.FlowModel.WorkItem.Select<T>(Func<, >)
DNVGL.One.Compute.Core.FlowModel.WorkItem.Traverse(Action<, >, DNVGL.One.Compute.Core.FlowModel.WorkItem)
DNVGL.One.Compute.Core.FlowModel.WorkItem.FindItems(Func<, >, System.Boolean)
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. |
Methods
View SourceCanExecute()
Determines whether this instance can execute.
Declaration
public override bool CanExecute()
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Overrides
View SourceProcess(Object, IExecutionContext)
Processes the specified input.
Declaration
protected override object Process(object input, IExecutionContext executionContext)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | input | The input. |
| IExecutionContext | executionContext | The execution context. |
Returns
| Type | Description |
|---|---|
| System.Object | Processing result. May be null. |