public void Save(QuartzAdmin.web.Models.InstanceModel instance)
 {
     //throw new NotImplementedException();
     _instances.Add(instance);
     QuartzAdmin.web.Models.InstanceModel found = _instances.Find(x => x.InstanceName == instance.InstanceName);
     if (found != null)
     {
         _instances.Remove(found);
     }
     _instances.Add(instance);
 }
        public List <InstanceModel> GetAll()
        {
            if (!ActiveRecordStarter.IsInitialized)
            {
                ActiveRecordStarter.Initialize();
            }

            List <InstanceModel> instances = new List <InstanceModel>();

            InstanceModel[] tmp_instances = InstanceModel.FindAll();
            foreach (InstanceModel instance in tmp_instances)
            {
                instances.Add(instance);
            }

            return(instances);
        }
 public JobRepository(InstanceModel instance)
 {
     quartzInstance = instance;
 }
        public JobRepository(string instanceName)
        {
            InstanceRepository repo = new InstanceRepository();

            quartzInstance = repo.GetInstance(instanceName);
        }
 public TriggerRepository(InstanceModel instance)
 {
     quartzInstance = instance;
 }
Beispiel #6
0
 public CalendarRepository(Models.InstanceModel instance)
 {
     quartzInstance = instance;
 }
 public void Delete(QuartzAdmin.web.Models.InstanceModel instance)
 {
     _instances.Remove(instance);
 }