Exemplo n.º 1
0
        public JobManagerController(ICustomerJobInfoRepository _customerJobInfoRepository, IServiceGetter _serviceGetter)
        {
            this._customerJobInfoRepository = _customerJobInfoRepository;
            this._serviceGetter             = _serviceGetter;
            JobBaseTrigger aa = new JobCronTrigger();



            //var scheduler = SchedulerManager.ConnectionCache["444444"];
            //if (!scheduler.IsShutdown)
            //{
            //    scheduler.Shutdown(true);
            //}
            ServiceController service = new ServiceController("QuartzServer");
            //var customeJobInfo = new custom_job_infoes() { CreateTime = DateTime.Now, Cron = "0/5 * * * * ? *", CurrentSchedulerHost = "10.129.170.188", CurrentSchedulerHostName = "1", CurrentSchedulerInstanceId = "aa", Deleted = 0, Description = "测试", DllName = "Quartz.Net_Core.dll", JobName = "aa", FullJobName = "Quartz.Net_Core.JobExcute.JobItem", OriginSchedulerHost = "10.129.170.188", OriginSchedulerHostName = "1", OriginSchedulerInstanceId = "aa", RequestUrl = "aa", TriggerState = 0, TriggerType = "JobCronTrigger", JobGroupName = "aa"+"group", TriggerGroupName ="aa"+"triggerGroup", TriggerName ="aa"+"trigger" };
            //    var jobId = _customerJobInfoRepository.AddCustomerJobInfo(customeJobInfo);
            //    _operateJob(jobId, (jobDetail) => { return _triggerBase.RunJob(jobDetail); });
        }
Exemplo n.º 2
0
 public JobManagerController(ICustomerJobInfoRepository _customerJobInfoRepository, IEnumerable <JobBaseTrigger> _triggerBases)
 {
     this._customerJobInfoRepository = _customerJobInfoRepository;
     this._triggerBases = _triggerBases;
 }
Exemplo n.º 3
0
 public ManageController(ICustomerJobInfoRepository _customerJobInfoRepository, IServiceGetter _serviceGetter)
 {
     this._customerJobInfoRepository = _customerJobInfoRepository;
     this._serviceGetter             = _serviceGetter;
 }
 public SchedulerController(ICustomerJobInfoRepository _customerJobInfoRepository, IServiceGetter _serviceGetter) : base(_customerJobInfoRepository, _serviceGetter)
 {
 }
Exemplo n.º 5
0
 public QuartzJobManageController(ICustomerJobInfoRepository customerJobInfoRepository)
 {
     _customerJobInfoRepository = customerJobInfoRepository;
 }