Tag Archives: feature receiver

(SPWeb)properties.Feature.Parent no more … a handy Feature Receiver Base Class

If you are writing SharePoint feature receivers often, you will find there are several lines of code common to just about every feature receiver: A cast of properties.Feature.Parent to the appropriate scope (either SPWeb, SPSite, SPWebApplication, or SPFarm) Empty implementations of FeatureInstalled and FeatureUninstalling Provided below is an abstract generic class that now serves as… Read More »

SharePoint Dependency Injection Approach

I just finished delivering a SharePoint workflow application in which I developed what could be called a start to framework that I would like to reuse in my next project. The framework currently has many features such as: An “Object-List Mapping” infrastructure complete with lazy initialization of objects and collections, converters, and caching A list… Read More »