private static void EventsDemo(ISimpleStatelessActor proxy) { Console.WriteLine("Enter the length of time, in seconds, you want to ping for:"); var seconds = Convert.ToInt32(Console.ReadLine()); var doWork = proxy.DoWorkAsync(seconds); proxy.SubscribeAsync(new ISimpleStatelessActorEventHandler()).Wait(); doWork.Wait(); }
private static void EventsDemo(ISimpleStatelessActor proxy) { Console.WriteLine("Enter the length of time, in seconds, you want to ping for:"); var seconds = Convert.ToInt32(Console.ReadLine()); var doWork = proxy.DoWorkAsync(seconds); proxy.SubscribeAsync(new ISimpleStatelessActorEventHandler()).Wait(); doWork.Wait(); }
private static void MessageDemo(ISimpleStatelessActor proxy) { while (true) { Console.WriteLine("What's your name?"); var message = proxy.SayHelloAsync(Console.ReadLine()); message.Wait(); Console.WriteLine(message.Result); Console.WriteLine(Environment.NewLine); } }
private static void MessageDemo(ISimpleStatelessActor proxy) { while (true) { Console.WriteLine("What's your name?"); var message = proxy.SayHelloAsync(Console.ReadLine()); message.Wait(); Console.WriteLine(message.Result); Console.WriteLine(Environment.NewLine); } }