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 |
---|---|
bool |
|
Execute(object, IExecutionContext)
Executes with the specified input.
Declaration
object Execute(object input, IExecutionContext executionContext = null)
Parameters
Type | Name | Description |
---|---|---|
object | input | The input. |
IExecutionContext | executionContext | The execution context. |
Returns
Type | Description |
---|---|
object | Result from execution. |