I need administrators to be able to delete a job in Quartz.NET. Are there any built-in methods of the JobDetail class that allow me to delete a job and all triggers associated with it?
you need to delete the task through the scheduler.
// First we must get a reference to a scheduler ISchedulerFactory sf = new StdSchedulerFactory(properties); IScheduler sched = sf.GetScheduler(); sched.DeleteJob(JobName, JobGroup);
To date, the DeleteJob method needs to enter JobKey as follows.
scheduler.DeleteJob(new JobKey("JobName1", "JobGroup1"));
Source: https://habr.com/ru/post/1770898/More articles:Why doesn't adding a return type prevent me from using method group syntax? - c #google datastore / python modeling - pythonHow to determine the number of elements stored in my db? - htmlGCC 4.5.0: host-x86_64-unknown-linux-gnu / fixincludes: No such file or directory - gccmysql query: going crazy - mysqlsql query to search for fifth record - sqlHow to use PostgreSQL triggers? - ruby-on-railsMeasuring signal strength in mobile networks in iOS and / or Android? - androidCall the same instance of the program? - chow to add more images to the list of arrays in android - androidAll Articles
stored in my db? - html