Beispiel #1
0
        public override void Install()
        {
            DeleteScheduleTask();
            var task = new ScheduleTask()
            {
                Name        = RssFeedHelper.ScheduleTaskName,
                Seconds     = 3600,
                Type        = "AF.Nop.Plugins.RssFeed.RssFeedTask, AF.Nop.Plugins.RssFeed",
                Enabled     = false,
                StopOnError = false,
            };

            _scheduleTaskRepository.Insert(task);
            _rssFeedSettings.TaskId        = task.Id;
            _rssFeedSettings.TaskName      = task.Name;
            _rssFeedSettings.TaskCheckTime = task.Seconds;
            _settingService.SaveSetting(_rssFeedSettings);

            RssFeedLocales.Install(this);
            base.Install();
        }
Beispiel #2
0
 public override void Uninstall()
 {
     DeleteScheduleTask();
     RssFeedLocales.Uninstall(this);
     base.Uninstall();
 }