ControllerNewComputation Method Naiad Help

[This is preliminary documentation and is subject to change.]

Constructs a new computation in this controller.

Namespace: Microsoft.Research.Naiad
Assembly: Microsoft.Research.Naiad (in Microsoft.Research.Naiad.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax

C#
Computation NewComputation()

Return Value

Type: Computation
The dataflow graph manager for the new computation.
Examples

A computation is typically created in a Controller as follows:
using Microsoft.Research.Naiad;

class Program
{
    public static void Main(string[] args)
    {
        using (Controller controller = NewController.FromArgs(ref args))
        {
            using (Computation computation = controller.NewComputation())
            {
                /* Computation goes here. */

                computation.Join();
            }

            controller.Join();
        }
    }
}
See Also

Reference