Esempio n. 1
0
        static void SupportGrabberPrimpogodaLenta()
        {
            ILogger  theLogger  = new LoggerConsole();
            IGrabber theGrabber = new GrabberPrimpogodaLenta(theLogger);

            theGrabber.Run();
        }
Esempio 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);
            }
        }