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