Interface IComputationalWork
Represents work that can be executed directly.
Namespace: DNVGL.One.Compute.WorkExecution.ExecutionModel
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public interface IComputationalWork
Properties
View SourceSource
Gets the source work item.
Declaration
WorkItem Source { get; }
Property Value
| Type | Description |
|---|---|
| WorkItem | The source work item. |
Methods
View SourceCanExecute()
Determines whether this instance can execute.
Declaration
bool CanExecute()
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Execute(Object, IExecutionContext)
Executes with the specified input.
Declaration
object Execute(object input, IExecutionContext executionContext = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | input | The input. |
| IExecutionContext | executionContext | The execution context. |
Returns
| Type | Description |
|---|---|
| System.Object | Result from execution. |