Table of Contents

Class TaskParallelComputationContext

Namespace
NMF.Transformations.Parallel.Tasks
Assembly
NMF.Transformations.Parallel.dll

Denotes a computation context that uses the TPL for parallel task execution

public class TaskParallelComputationContext : ComputationContext, IComputationContext
Inheritance
TaskParallelComputationContext
Implements
Inherited Members

Constructors

TaskParallelComputationContext(ITransformationContext)

Creates a new instance

public TaskParallelComputationContext(ITransformationContext context)

Parameters

context ITransformationContext

Methods

Complete()

Waits until all transformations are computed

public Task Complete()

Returns

Task

ConnectWith(Computation)

Connects the computation context with the given computation

public override void ConnectWith(Computation computation)

Parameters

computation Computation

The computation thst is handled by this computation context

MarkRequire(Computation, bool)

Mark that this computation context requires another computation context to be done

public override void MarkRequire(Computation other, bool isRequired)

Parameters

other Computation

The other computation context

isRequired bool

True, if the other context is a strict requirement