I followed the code example at How to: Create a Web Application-Scoped Timer Job. It creates a timer job that runs on a list in the root of the web application. However, I need to make the timer job run on a list that is located in a subsite.
I think that a way to do this is to use the [Persisted] attribute as explained in Creating Timer Jobs in SharePoint 2010 That Target Specific Web Applications (Wrox), but I have really struggled with how to get that to work.
Are there some code examples online that I haven't been able to find, that make this more clear? Or can someone write a code example that shows how to do this?