NewComputationFromArgs Method Naiad Help

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

Constructs a OneOffComputation 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 OneOffComputation FromArgs(
	ref string[] args
)

Parameters

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

Return Value

Type: OneOffComputation
A new OneOffComputation based on the given arguments.
Remarks

This class provides a convenient mechanism for initializing a Naiad program that contains a single computation, by combining the roles of a Controller and a Computation. For more complicated cases, use FromArgs(String) and NewComputation.
Examples

Many Naiad programs initialize the OneOffComputation as follows: using Microsoft.Research.Naiad; class Program { public static void Main(string[] args) { using (OneOffComputation computation = NewComputation.FromArgs(ref args)) { /* Computation goes here. */ computation.Join(); } } }
See Also

Reference