示例#1
0
        public static async Task Main()
        {
            // handle console close event, to log out temp user and destroy credentials
            Console.CancelKeyPress += Dispose;
            AppDomain.CurrentDomain.ProcessExit += Dispose;

            await CoursesDownloaderManual.Init();

            await CoursesDownloaderManual.Run();
        }
示例#2
0
 private static async Task HandleLogOutAction()
 {
     CoursesClient.Dispose();
     await CoursesDownloaderManual.Init();
 }
示例#3
0
        private static async Task HandleTempUserLogInAction()
        {
            await CoursesClient.TempLogInUser();

            await CoursesDownloaderManual.Init();
        }
示例#4
0
 private static void Dispose()
 {
     CoursesDownloaderManual.Dispose();
 }