public static void Main() { RemoteAdvisorSample sample = new RemoteAdvisorSample(); try { sample.RunAsync().Wait(); } catch (AggregateException ex) { Console.WriteLine("Exception hit:" + ex.GetBaseException().ToString()); } }
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(); }