Class WorkExecutionService
Supports in-process execution (execution in the calling process) of IComputationalWork.
Implements
Inherited Members
Namespace: DNVGL.One.Compute.WorkExecution
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public class WorkExecutionService : IComputationalWorkExecutionService
Constructors
View SourceWorkExecutionService(IExecutableWorkBuilder)
Initializes a new instance of the WorkExecutionService class.
Declaration
public WorkExecutionService(IExecutableWorkBuilder workBuilder = null)
Parameters
Type | Name | Description |
---|---|---|
IExecutableWorkBuilder | workBuilder | The work builder. |
See Also
Methods
View SourceSubmitWork(WorkItem, object, IExecutionContext)
Submits the work.
Declaration
public IWorkExecutionMonitor SubmitWork(WorkItem work, object input, IExecutionContext rootExecutionContext = null)
Parameters
Type | Name | Description |
---|---|---|
WorkItem | work | The work. |
object | input | The input. |
IExecutionContext | rootExecutionContext | The root execution context. |
Returns
Type | Description |
---|---|
IWorkExecutionMonitor |
Remarks
The root execution context can be used to assign variables that will be accessible by all work items during execution.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Unable to build executable work from WorkItem {work.Id} of type {work.GetType()}. |