NewControllerFromArgs Method Naiad Help

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

Constructs a Controller with a configuration extracted from the given command-line arguments.

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

C#
public static Controller FromArgs(
	ref string[] args
)

Parameters

args
Type: SystemString
The command-line arguments, which will have Naiad-specific arguments removed.

Return Value

Type: Controller
A new Controller based on the given arguments.
Examples

Many Naiad programs initialize the 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