You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To create a custom Rock Job you only need to extend the IJob interface and implement the Execute() method. You can also use [BlockProperty] to hold administrator configured settings/values for your job.
usingQuartz;[BlockProperty(0,"My Property","MyProperty","General","This would be the description of this property.",false,"100","Rock","Rock.Field.Types.Integer")]publicclassMyCustomJob:IJob{publicvirtualvoidExecute(IJobExecutionContextcontext){// get the stored configuration propertyJobDataMapdataMap=context.JobDetail.JobDataMap;intsomeNumber=Int32.Parse(dataMap.GetString("MyProperty"));// TODO: do something interesting}}