Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 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);
     }
 }