Show / Hide Table of Contents

Class WorkExecutionService

Supports in-process execution (execution in the calling process) of IComputationalWork.

Inheritance
object
WorkExecutionService
Implements
IComputationalWorkExecutionService
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DNVGL.One.Compute.WorkExecution
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public class WorkExecutionService : IComputationalWorkExecutionService

Constructors

View Source

WorkExecutionService(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
IComputationalWorkExecutionService

Methods

View Source

SubmitWork(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

A 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()}.

See Also
IComputationalWorkExecutionService

Implements

IComputationalWorkExecutionService

See Also

IComputationalWorkExecutionService
  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.