Class TaskParallelComputationContext
Denotes a computation context that uses the TPL for parallel task execution
Implements
Inherited Members
Namespace: NMF.Transformations.Parallel.Tasks
Assembly: NMF.Transformations.Parallel.dll
Syntax
public class TaskParallelComputationContext : ComputationContext, IComputationContext
Constructors
| Edit this page View SourceTaskParallelComputationContext(ITransformationContext)
Creates a new instance
Declaration
public TaskParallelComputationContext(ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
ITransformationContext | context |
Methods
| Edit this page View SourceComplete()
Waits until all transformations are computed
Declaration
public Task Complete()
Returns
Type | Description |
---|---|
Task |
ConnectWith(Computation)
Connects the computation context with the given computation
Declaration
public override void ConnectWith(Computation computation)
Parameters
Type | Name | Description |
---|---|---|
Computation | computation | The computation thst is handled by this computation context |
Overrides
| Edit this page View SourceMarkRequire(Computation, bool)
Mark that this computation context requires another computation context to be done
Declaration
public override void MarkRequire(Computation other, bool isRequired)
Parameters
Type | Name | Description |
---|---|---|
Computation | other | The other computation context |
bool | isRequired | True, if the other context is a strict requirement |