Пример #1
0
        //private static string _botName = ConfigurationManager.AppSettings["BotName"];

        static void Main2(string[] args)
        {
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

            //Engvid.UploadEngVid().GetAwaiter().GetResult();
            //LearnEngTodayJob.GetLastPageLinks();
            LearnEngTodayJob.Start();

            Console.ReadKey();
        }
Пример #2
0
        static void Main3(string[] args)
        {
            UploadMp4AndSaveJson().GetAwaiter().GetResult();

            //MainAsync(args).GetAwaiter().GetResult();

            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
            bool AllJobsEnabled = ConfigurationManager.AppSettings["AllJobsEnabled"].ToSafeBool();

            if (ConfigurationManager.AppSettings["CambridgePostEnabled"].ToSafeBool() || AllJobsEnabled)
            {
                CambridgeJob.Start();
            }

            if (ConfigurationManager.AppSettings["ListenAMinPostEnabled"].ToSafeBool() || AllJobsEnabled)
            {
                ListenAMinJob.Start();
            }

            if (ConfigurationManager.AppSettings["EslFastPostEnabled"].ToSafeBool() || AllJobsEnabled)
            {
                EslFastJob.Start();
            }

            if (ConfigurationManager.AppSettings["PhotoWithTextPostEnabled"].ToSafeBool() || AllJobsEnabled)
            {
                PhotoWithTextJob.Start();
            }

            if (ConfigurationManager.AppSettings["LearnEngTodayPostEnabled"].ToSafeBool() || AllJobsEnabled)
            {
                LearnEngTodayJob.Start();
            }

            if (ConfigurationManager.AppSettings["CommonMistakesPostEnabled"].ToSafeBool() || AllJobsEnabled)
            {
                CommonMistakesJob.Start();
            }

            if (ConfigurationManager.AppSettings["EslPodEnabled"].ToSafeBool() || AllJobsEnabled)
            {
                EslPodJob.Start();
            }

            if (ConfigurationManager.AppSettings["NewsInLevelsEnabled"].ToSafeBool() || AllJobsEnabled)
            {
                NewsInLevelsJob.Start();
            }

            Console.ReadKey();
        }