public static void Execute(PSharpRuntime runtime) { ActorModel.Configure(Configuration.Create(false, false, false, false, false)); ActorModel.Start(runtime, () => { var environment = ActorProxy.Create <IEnvironment>(new ActorId(0), "fabric:/FabricSmartHome"); Task t = environment.Start(); ActorModel.Wait(t); }); }
public static void Execute(PSharpRuntime runtime) { Configuration conf = Configuration.Create(true, true, false, true, true); ActorModel.Configure(conf); ActorModel.Start(runtime, () => { var tester = GrainClient.GrainFactory.GetGrain <ITestAdd>(0); Task t = tester.startTest(); }); }
public static void Execute(PSharpRuntime runtime) { Configuration conf = Configuration.Create(true, true, true, true, true); ActorModel.Configure(conf); ActorModel.Start(runtime, () => { var config = ClientConfiguration.LocalhostSilo(); GrainClient.Initialize(config); var sender = GrainClient.GrainFactory.GetGrain <ISender>(0); Task t = sender.DoSomething(10); }); }