Timer Job:
Timer Job is a background process that are run by SharePoint. It is a periodically executed task inside SharePoint Server. It provides us a task execution environment.
Timer Job is a background process that are run by SharePoint. It is a periodically executed task inside SharePoint Server. It provides us a task execution environment.
Default Timer Jobs inside SharePoint:
There are many timer jobs inside SharePoint which do internal tasks like:
- Send emails
- Validate sites
- Delete unused sites
- Health analysis
- Product versioning
- Diagnostics
These tasks will having execution periods like:
- Minute
- Hour
- Day
- Week
- Month
Components of Connectable web parts :
- Derive CustomTimerJob Class from SPJobDefinition
- Add the three Constructors of the derived class : When ever we create the object of CustomTimerJob class, corresponding constructor will execute.
- Override the Execute method: When ever the timer job start running then the code inside the Execute method will run.
- We need to create a Feature and Feature Receiver so on activation of this feature we are going the add our timer job to SharePoint farm.
For More: Complete Timer Job Info
No comments:
Post a Comment