i build a function to create a job in on quartz.net
The Classname, Jobname and Cronstring a in my application database. Now tihs function create a new job and trigger, but the class name are a string. I search with reflaction or equivalent to java with class.forname and i found no solution for my problem.
private void newJob(string JobName, string klasse, string parameter,string cronString)
{
IScheduler scheduler = StdSchedulerFactory.GetDefaultScheduler();
scheduler.Start();
???
IJobDetail job = JobBuilder.Create<???> ().WithIdentity(Jobname, "group1").Build();
ITrigger trigger = TriggerBuilder.Create()
.
.
.
How can i the string "klasse" convert in a class and use it in the JobBuilder.create Statemant?
Aucun commentaire:
Enregistrer un commentaire