static void Main(string[] args) { IHelloWorld actor = ActorProxy.Create <IHelloWorld>(ActorId.CreateRandom(), new Uri("fabric:/MyApplication/HelloWorldActorService")); Task <string> retval = actor.GetHelloWorldAsync(); Console.Write(retval.Result); Console.ReadLine(); }
static void Main(string[] args) { try { IHelloWorld actor = ActorProxy.Create <IHelloWorld>(ActorId.CreateRandom(), new Uri("fabric:/MyActorApplication2/HelloWorldActorService")); Task <string> retval = actor.GetHelloWorldAsync(); Console.Write(retval.Result.ToString()); Console.ReadLine(); } catch (Exception Ex) { Console.WriteLine(Ex); } }