Inheritance: ITimingService
        public UrlRunningService(IUrlRequestService requestService)//, EmailFinalResult emailFinalResult)
        {
            _database = ApplicationContext.Current.DatabaseContext.Database;
            _database.OpenSharedConnection();
            //_database = new UmbracoDatabase("umbracoDbDSN");

            _timingService  = new TimingService();
            _requestService = requestService;


            Log = LogManager.GetLogger(typeof(UrlRunningService));
            //_emailFinalResult = emailFinalResult;
            //_completeStatus += SetCurrentStatus;
            //_completeStatus += UpdateLastFiveStatus;
            _completeStatus += SaveTaskInformation;

            _saveTasks += SetCurrentStatus;
            _saveTasks += UpdateLastFiveStatus;
            _saveTasks += SetLastRunTime;
        }
        public ScheduleUrl PostSave(ScheduleUrl url)
        {
            var ts = new TimingService();

            url.NextRun = ts.GetNextRun(url); ;
            url.StartFrom = DateTime.UtcNow;

            url.LastFiveOutcomes = "x,x,x,x,x";

            if (url.Id > 0)
                DatabaseContext.Database.Update(url);
            else
                DatabaseContext.Database.Save(url);

            return url;
        }