Beispiel #1
0
        public static void Main()
        {
            var sample = new InviteAndRemoveParticipant();

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

            if (sample.EventChannel != null)
            {
                sample.EventChannel.TryStopAsync().Wait();
            }
        }
Beispiel #2
0
        public static void Main()
        {
            var sample = new InviteAndRemoveParticipant();

            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());
            }
        }