Beispiel #1
0
        public void Execute()
        {
            try
            {
                var stortStationsList = this.GetStations(Settings.Default.RiverName);

                foreach (var station in stortStationsList)
                {
                    PrintHelper.PrintToConsole(this.GetStationReadingsResult(station.Notation));
                }
            }
            catch (Exception e)
            {
                Log.Error(e.Message); // Log the error
                PrintHelper.Print("Something went wrong, please check logs", false);
            }
        }