Beispiel #1
0
        public static JobDataMap GetJobDataMap(SchedulesJob job)
        {
            var jobDataMap = new JobDataMap();

            foreach (var jobEntry in job.JobDataMap)
            {
                jobDataMap.Add(jobEntry.Key, jobEntry.Value);
            }

            return(jobDataMap);
        }
Beispiel #2
0
        public static String GetAlertJobType(String alertName, SchedulesJob schedulesJob)
        {
            try
            {
                var jobTypeParts = schedulesJob.Jobtype.Split(',');
                return($"{jobTypeParts[1].Trim()}.{schedulesJob.Name}");
            }
            catch (Exception ex)
            {
                NLogger.Error(ex.Message);
            }

            return(String.Empty);
        }
Beispiel #3
0
        public static String GetJobTypeClassName(SchedulesJob job)
        {
            var parts = job.Jobtype.Split(',');

            return(parts.Length > 0 ? parts[0] : String.Empty);
        }