public Task Execute(IJobExecutionContext context)
        {
            StartupJobsLogic startupJobs = new StartupJobsLogic();

            startupJobs.CheckForStreamerLiveStatus();
            JobHelpers.SetJobLastRunDateTime(context);
            return(Task.CompletedTask);
        }
Example #2
0
        public Task Execute(IJobExecutionContext context)
        {
            StartupJobsLogic startupJobsLogic = new StartupJobsLogic();

            startupJobsLogic.CheckForUpdates();
            JobHelpers.SetJobLastRunDateTime(context);
            return(Task.CompletedTask);
        }
Example #3
0
        public Task Execute(IJobExecutionContext context)
        {
            CleanUpDatabase cleanUpDatabase = new CleanUpDatabase();

            cleanUpDatabase.TrimLogs();
            JobHelpers.SetJobLastRunDateTime(context);
            return(Task.CompletedTask);
        }
Example #4
0
        public Task Execute(IJobExecutionContext context)
        {
            StartupJobsLogic startupJobsLogic = new StartupJobsLogic();
            JobDataMap       jobDataMap       = context.JobDetail.JobDataMap;

            startupJobsLogic.DatabaseBackup(jobDataMap.GetString("database"));
            JobHelpers.SetJobLastRunDateTime(context);
            return(Task.CompletedTask);
        }