Class ExecutableWorkBase<TIn, TOut>
An implementation base class for work with typed input and output.
Inheritance
System.Object
ExecutableWorkBase<TIn, TOut>
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 abstract class ExecutableWorkBase<TIn, TOut> : ExecutableWorkBase, IFlowModelItem, IExecutableWork<TIn, TOut>, IComputationalWork
Type Parameters
Name | Description |
---|---|
TIn | The type of the in. |
TOut | The type of the out. |
Methods
View SourceExecute(TIn, IExecutionContext)
Executes with the specified input.
Declaration
public TOut Execute(TIn input, IExecutionContext executionContext = null)
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The input. |
IExecutionContext | executionContext | The execution context. |
Returns
Type | Description |
---|---|
TOut | Result from execution. |
Process(TIn, IExecutionContext)
Processes the specified input.
Declaration
protected abstract TOut Process(TIn input, IExecutionContext executionContext)
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The input. |
IExecutionContext | executionContext | The execution context. |
Returns
Type | Description |
---|---|
TOut | Processing result. May be null. |
Process(Object, IExecutionContext)
Processes the specified input.
Declaration
protected sealed 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. |
Overrides
Implements
Extension Methods
See Also
IExecutableWork<TIn, TOut>