/// <summary>
        /// Uninstalls this instance.
        /// </summary>
        /// <param name="plugin">The plugin.</param>
        public virtual void Uninstall(BasePlugin plugin)
        {
            //settings
            _settingService.DeleteSetting <MailChimpSettings>();

            //locales
            plugin.DeletePluginLocaleResource("Plugin.Misc.MailChimp.ApiKey");
            plugin.DeletePluginLocaleResource("Plugin.Misc.MailChimp.DefaultListId");
            plugin.DeletePluginLocaleResource("Plugin.Misc.MailChimp.AutoSync");
            plugin.DeletePluginLocaleResource("Plugin.Misc.MailChimp.AutoSyncEachMinutes");
            plugin.DeletePluginLocaleResource("Plugin.Misc.MailChimp.AutoSyncRestart");
            plugin.DeletePluginLocaleResource("Plugin.Misc.MailChimp.WebHookKey");
            plugin.DeletePluginLocaleResource("Plugin.Misc.MailChimp.QueueAll");
            plugin.DeletePluginLocaleResource("Plugin.Misc.MailChimp.QueueAll.Hint");
            plugin.DeletePluginLocaleResource("Plugin.Misc.MailChimp.ManualSync");
            plugin.DeletePluginLocaleResource("Plugin.Misc.MailChimp.ManualSync.Hint");

            //Remove scheduled task
            var task = FindScheduledTask();

            if (task != null)
            {
                _scheduleTaskService.DeleteTask(task);
            }

            //Uninstall the database tables
            _mailChimpObjectContext.Uninstall();
        }
        /// <summary>
        /// Uninstalls this instance.
        /// </summary>
        /// <param name="plugin">The plugin.</param>
        public virtual void Uninstall(BasePlugin plugin)
        {
            ////locales
            //plugin.DeletePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.ApiKey");
            //plugin.DeletePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.DefaultListId");
            plugin.DeletePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.AutoSync");
            plugin.DeletePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.AutoSyncEachMinutes");
            plugin.DeletePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.AutoSyncRestart");
            //plugin.DeletePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.WebHookKey");
            //plugin.DeletePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.QueueAll");
            //plugin.DeletePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.QueueAll.Hint");
            //plugin.DeletePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.ManualSync");
            //plugin.DeletePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.ManualSync.Hint");

            //Remove scheduled task
            var task = FindScheduledTask();

            if (task != null)
            {
                _scheduleTaskService.DeleteTask(task);
            }

            //Uninstall the database tables
            //_scheduledXmlEporterObjectContext.Uninstall();
        }
Exemple #3
0
        /// <summary>
        /// Uninstalls this instance.
        /// </summary>
        /// <param name="plugin">The plugin.</param>
        public virtual void Uninstall(BasePlugin plugin)
        {
            ////locales
            plugin.DeletePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.AutoSync");
            plugin.DeletePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.AutoSyncEachMinutes");
            plugin.DeletePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.AutoSyncRestart");


            plugin.DeletePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.ScheduleTime");
            plugin.DeletePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.LastStartDate");
            plugin.DeletePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.EmailForReporting");
            plugin.DeletePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.EmailForReportingCC");
            plugin.DeletePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.NameForReporting");
            plugin.DeletePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.EnablePriceUpdate");

            //Remove scheduled task
            var task = FindScheduledTask();

            if (task != null)
            {
                _scheduleTaskService.DeleteTask(task);
            }

            //Uninstall the database tables
            //_xmlUpdateFromRotapObjectContext.Uninstall();
        }
Exemple #4
0
 public static void Uninstall(BasePlugin plugin)
 {
     foreach (var d in Collection)
     {
         plugin.DeletePluginLocaleResource(d.Key);
     }
 }