[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: ControllerA new Controller based on the given arguments.
Examples
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