static void Main(string[] args) { MBraceSettings.MBracedExecutablePath = @"C:\dev\github-repositories\CloudLinq\lib\mbraced.exe"; MBraceSettings.StoreProvider = StoreProvider.LocalFS; var rt = MBrace.InitLocal(3); using (var ctx = new MBraceCloudContext(rt)) { var q1 = Extensions.Range(1, 10) .Select(x => - MyType.Abs(x)); var r1 = ctx.Run(q1); } using (var ctx = new MBraceLocalCloudContext(3)) { var q2 = Extensions.Range(1, 10) .Select(x => MyType.Binomial(x, 2)); var r2 = ctx.Run(q2); } }
/// <summary> /// For internal use only. Encapsulate workflow. /// </summary> /// <param name="body"></param> public CloudAction(MBrace.Cloud<Unit> body) { this.Body = body; }