private static void ETLTaskHandler(ETLTaskMessage message) { Console.WriteLine($"{DateTime.Now}: ETLWorker started for {message.VillageName}."); _etlWorker.EtlWorkerTask(message.VillageName); CallRefreshEvent("Success"); Console.WriteLine($"{DateTime.Now}: ETLWorker finished for {message.VillageName}."); }
private static void PublishEtlMessage(string villageName) { Console.WriteLine($"{DateTime.Now}: Crawler publish etl task for {villageName}."); ETLTaskMessage etlTaskMessage = new ETLTaskMessage { ETLStartTask = true, VillageName = villageName }; _bus.Publish(etlTaskMessage, _etlTopic); }