Class WorkBuilder
The default IExecutableWorkBuilder for the built-in library of IComputationalWork.
Implements
Inherited Members
Namespace: DNVGL.One.Compute.WorkExecution.ExecutionModel
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public class WorkBuilder : IExecutableWorkBuilder
Constructors
View SourceWorkBuilder(IEnumerable<IExecutableWorkBuilder>)
Initializes a new instance of the WorkBuilder class.
Declaration
public WorkBuilder(IEnumerable<IExecutableWorkBuilder> builderChain = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IExecutableWorkBuilder> | builderChain | The builder chain. |
See Also
Properties
View SourceDefaultWorkBuilder
Gets the work builder.
Declaration
public static IExecutableWorkBuilder DefaultWorkBuilder { get; }
Property Value
Type | Description |
---|---|
IExecutableWorkBuilder | The work builder. |
See Also
Methods
View SourceAddBuilder(IExecutableWorkBuilder)
Adds the builder to the builder chain.
Declaration
public void AddBuilder(IExecutableWorkBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IExecutableWorkBuilder | builder | The builder. |
See Also
View SourceBuildExecutableWork(WorkItem)
Builds the executable work from the given work item.
Declaration
public IComputationalWork BuildExecutableWork(WorkItem workItem)
Parameters
Type | Name | Description |
---|---|---|
WorkItem | workItem | The work item. |
Returns
Type | Description |
---|---|
IComputationalWork | The executable work. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Unable to find a way to execute work items of type {workItem.GetType()}. |
See Also
View SourceCanBuild(WorkItem)
Determines whether this build is able to build executable work from the given work item.
Declaration
public bool CanBuild(WorkItem workItem)
Parameters
Type | Name | Description |
---|---|---|
WorkItem | workItem | The work item. |
Returns
Type | Description |
---|---|
bool |
|