static void SupportGrabberKhabkrai() { ILogger theLogger = new LoggerConsole(); IGrabber theGrabber = new GrabberKhabkrai(theLogger); theGrabber.Run(); }
private void timer1_Tick_1(object sender, EventArgs e) { ILogger theLogger = new LoggerNLog(); try { theLogger.Log("NewsServiceGrabber: TimerTick"); IGrabber theGrabberPrimpogodaLenta = new GrabberPrimpogodaLenta(theLogger); theGrabberPrimpogodaLenta.Run(); IGrabber theGrabberDvrcpod = new GrabberDvrcpodNews(theLogger); theGrabberDvrcpod.Run(); IGrabber theGrabberKhabmeteoHydrology = new GrabberKhabmeteoHydrology(theLogger); theGrabberKhabmeteoHydrology.Run(); IGrabber theGrabberKhabkrai = new GrabberKhabkrai(theLogger); theGrabberKhabkrai.Run(); IGrabber theGrabberGeoStorm = new GrabberGeoStorm(theLogger); theGrabberGeoStorm.Run(); } catch (Exception ex) { theLogger.Log(ex.Message); theLogger.Log(ex.StackTrace); } }