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(); }
private static async Task HandleLogOutAction() { CoursesClient.Dispose(); await CoursesDownloaderManual.Init(); }
private static async Task HandleTempUserLogInAction() { await CoursesClient.TempLogInUser(); await CoursesDownloaderManual.Init(); }
private static void Dispose() { CoursesDownloaderManual.Dispose(); }