Esempio n. 1
0
        static void StartService(string[] args)
        {
            string check = string.Empty;

            try
            {
                check = args[0];
            }
            catch (Exception)
            {
                check = null;
            }
            if (string.IsNullOrEmpty(check))
            {
                Console.WriteLine("Enter 1 to run RSS DataServices");
                Console.WriteLine("Enter 2 to run RSS Contents news DataServices");
                string dataService = Console.ReadLine();
                if (dataService == "1")
                {
                    RssDateServices _RssDateServices = new RssDateServices();
                    _RssDateServices.Rss();
                }
                else if (dataService == "2")
                {
                    RssDateServices _RssDateServices = new RssDateServices();
                    _RssDateServices.RssContentsFeeds();
                }
            }
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            RssDateServices _RssDateServices = new RssDateServices();

            _RssDateServices.Rss();
        }