/// <summary> /// Promoes the run. /// </summary> /// <returns></returns> private static Blink PromoRun() { Logger.LogMessage("Initiation Promo check run"); try { if (LocalBot == null || !LocalBot.ValidBrowser) { LocalBot = new LocalBot(); LocalBot.Login(); } var currentPromo = LocalBot.GetPromos(); return currentPromo; } catch (Exception e) { Logger.LogMessage("Remote exception: \n {0}", e.Message); if (LocalBot != null) { LocalBot.CleanUp(); } } return null; }
/// <summary> /// Initials the setup. /// </summary> private static void InitialSetup() { Logger.LogMessage("Bot firing up initial setup"); Logger.LogMessage(); Logger.LogMessage(); //////////////////////////// DownTimeProvider = new DownTimeProvider(DateTime.Now); //////////////////////////// CurrentPromo = null; State = BotState.FullRun; UserSettings = UserSettingsHelper.ReadUserSettings(); LocalBot = new LocalBot(); LocalBot.Login(); }