Ejemplo n.º 1
0
        static void SupportGrabberKhabmeteoHydrology()
        {
            ILogger  theLogger  = new LoggerConsole();
            IGrabber theGrabber = new GrabberKhabmeteoHydrology(theLogger);

            theGrabber.Run();
        }
Ejemplo n.º 2
0
        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);
            }
        }