Example #1
0
        static void Main(string[] args)
        {
            Database.DefaultConnectionFactory = new ServiceConfigurationSettingConnectionFactory(Database.DefaultConnectionFactory);

            using (var processor = new ConferenceCommandProcessor())
            {
                processor.Start();

                Console.WriteLine("Host started");
                Console.WriteLine("Press enter to finish");
                Console.ReadLine();

                processor.Stop();
            }
        }
Example #2
0
        public override void Run()
        {
            Trace.WriteLine("Starting the command processor", "Information");

            this.running = true;

            using (var processor = new ConferenceCommandProcessor())
            {
                processor.Start();

                while (this.running)
                {
                    Thread.Sleep(10000);
                }

                processor.Stop();
            }
        }