예제 #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();
 }