private static void RemoveOldNumberFromTwilio(IValidateKeysProvider provider) { try { var twilioLoginProvider = provider as TwilioProvider; if (twilioLoginProvider != null) { twilioLoginProvider.ClearOldNumbers(); } } catch (Exception e) { LogManager.GetLogger("ASC").Error(e); } }
private static void ClearUrlShortenerInstance(IValidateKeysProvider provider) { try { var twilioLoginProvider = provider as BitlyLoginProvider; if (twilioLoginProvider != null) { Web.Core.Utility.UrlShortener.Instance = null; } } catch (Exception e) { LogManager.GetLogger("ASC").Error(e); } }