static void Main(string[] args) { Log.Logger = SetupLogger(); var scraperBuilder = new ScraperBuilder(config => { config.ScraperNo = int.Parse(ConfigurationManager.AppSettings["ScraperNo"]); config.DBreezeDataFolderName = ConfigurationManager.AppSettings["DBreezeDataFolderName"]; config.Scrapers = int.Parse(ConfigurationManager.AppSettings["Scrapers"]); config.SyncInterval = int.Parse(ConfigurationManager.AppSettings["SyncInterval"]); config.ScraperConnectionString = ConfigurationManager.AppSettings["ScraperConnectionString"]; }); ICoordinator controller = scraperBuilder.Build(); controller.Start(); Console.ReadLine(); controller.Stop(); Console.ReadLine(); }
private void StartCoordinator() { _coordinator = new Coordinator(); _coordinator.Start(); Console.WriteLine("I am the new Coordinator!"); _election.SetCoordinator(); }