I'm create a timer job in sharepoint and have made it quite far. I am running into the issue of having a "this" object in a static method. Here is my code. If anyone has any suggestions, that would be great.
public static SPListItemCollection GetRecordwithMissingData (string DocType, string DocName)
{
//Access associate ID and Doc Name
//SPWeb web = properties.Feature.Parent as SPWeb;
SPWebApplication webapp = this.Parent as SPWebApplication;
SPSite hrdocsSite = webapp.Sites["sites/HRDOCS/HRDocuments"];
SPWeb rootweb = hrdocsSite.RootWeb;
SPList AssociateDocumentsList = rootweb.Lists["Associate Documents"];
SPListItemCollection AssociateDocuments = AssociateDocumentsList.GetItems("ID", "PrimaryName", "DocName", "Document Type");
// stores Associate Documents ^