Class ExecutableWorkBase<TIn, TOut>
An implementation base class for work with typed input and output.
Inheritance
ExecutableWorkBase<TIn, TOut>
Inherited Members
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. |
See Also
IExecutableWork<TIn, TOut>
Process(object, IExecutionContext)
Processes the specified input.
Declaration
protected override sealed 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. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if |
See Also
IExecutableWork<TIn, TOut>
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. |
See Also
IExecutableWork<TIn, TOut>
Implements
Extension Methods
See Also
IExecutableWork<TIn, TOut>