public static void Main() { var sample = new TrustedJoinMeeting(); try { sample.RunAsync().Wait(); } catch (AggregateException ex) { Console.WriteLine("Exception: " + ex.GetBaseException().ToString()); } if (sample.EventChannel != null) { sample.EventChannel.TryStopAsync().Wait(); } }
public static void Main() { var sample = new TrustedJoinMeeting(); try { Uri callbackUri; // Start HTTP server and get callback uri using (WebEventChannel.WebEventChannel.StartHttpServer(out callbackUri)) { sample.RunAsync(callbackUri).Wait(); } } catch (AggregateException ex) { Console.WriteLine("Exception: " + ex.GetBaseException().ToString()); } }