The following code produces the following error:
Imports Quartz
Imports Quartz.Impl
Public Class InsertRssFeedJob
Implements IJob
Public Sub Execute(context As JobExecutionContext)
Dim rssContoller = New RssController()
rssController.InsertRssFeedItem("")
End Sub
End Class
Error 1 Class ‘InsertRssFeedJob’ must implement ‘Sub Execute(context As IJobExecutionContext)’ for interface ‘Quartz.IJob’. C:\Users\darchual\documents\visual studio 2010\Projects\MyBlog\MyBlog\QuartzScheduler\Class1.vb 5 16 MyBlog
I have added the library package reference and can import Quartz successfully, but “Implements IJob” has a blue line underneath of it and displays the error above. What can I do? Thank you.
This is How I use it (first create scheduleFactory, in a different class/Sub)…
I passed the class name “cls_schedule” to JobDetail, Then you can use your class (which was passed as parameter) to Excute the actuall task.