예제 #1
0
        public static void Main()
        {
            RemoteAdvisorSample sample = new RemoteAdvisorSample();

            try
            {
                sample.RunAsync().Wait();
            }
            catch (AggregateException ex)
            {
                Console.WriteLine("Exception hit:" + ex.GetBaseException().ToString());
            }
        }
예제 #2
0
        public static void Main()
        {
            RemoteAdvisorSample sample = new RemoteAdvisorSample();

            try
            {
                sample.RunAsync().Wait();
            }
            catch (AggregateException ex)
            {
                Console.WriteLine("Exception hit:" + ex.GetBaseException().ToString());
            }

            Console.WriteLine("Sample run complete. Press any key to exit...");
            Console.ReadKey();
        }