I created a class library and made sure to inherit
DotNetNuke.Services.Scheduling.SchedulerClient
And then redefined DoWork () sub.
Then, in the dnn host> scheduler settings, a new scheduler element is added.
in the text box with the inscription: Full class name and assembly:
Namespace.Classname, Dllname
checked the "Enable Schedule" checkbox and added a 5-minute run time interval and turned on "catch up."
also added a list of tables that the class uses. and save 5 history entries
Then I saved it,
In the view schedule window, I get the following:
Name | Next Start | OverDue(s) | Time Remaining
Sub reminder | 11/12/2010 9:52:02 AM | 3.5 | 0
Using the scheduler in query mode.
Thanks in advance for your help.
Update:
Ok, I created a new class library project called SubRenewal, Renamed the vb file to the Test file and added below to the file
Namespce Matts
Public Class Test
Inherits Dnn.Services.Scheduling.SchedulerClient
Public overrides Sub DoWork()
Me.ScheduleHistoryItem.addLogNote("I ran")
end Sub
End Class
End Namespace
:
Matts.Test, SubRenwal
10
Rety -
. .