Пример #1
0
        static void Main(string[] args)
        {
            var sample = new MessagingAfterJoinMeeting();

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

            if (sample.EventChannel != null)
            {
                sample.EventChannel.TryStopAsync().Wait();
            }
        }
Пример #2
0
        public static void Main()
        {
            var sample = new MessagingAfterJoinMeeting();

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