コード例 #1
0
        static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionTrapper;  //quick and dirty error handling :)
            _server = new LyncServer();
            _server.LyncServerReady += server_LyncServerReady;
            _server.IncomingCall += server_IncomingCall;
            Task t = _server.Start();
            

            Console.ReadLine();
            var stopping = _server.Stop();
            stopping.Wait();

            Console.WriteLine("Press any key to exit");
            Console.ReadLine();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionTrapper; //quick and dirty error handling :)
            _server = new LyncServer();
            _server.LyncServerReady += server_LyncServerReady;
            _server.IncomingCall    += server_IncomingCall;
            Task t = _server.Start();


            Console.ReadLine();
            var stopping = _server.Stop();

            stopping.Wait();

            Console.WriteLine("Press any key to exit");
            Console.ReadLine();
        }