Posts Tagged Enterprise Library
Avoiding serialization issues in SharePoint property bags by using JSON
Posted by Johan Leino in SharePoint on January 24, 2012
Storing application settings in a SharePoint solution can be done in numerous ways. One of the more robust solutions is to use the property bags that exist all throughout the hierarchy of the SharePoint object model. The only real issue that we have in all of these property bags are that we can store any […]
SPG: Find all settings using the application settings manager
Posted by Johan Leino in SharePoint on November 18, 2010
If you are using the The Application Setting Manager from Patterns and Practices SharePoint Guidance library (SPG) to work with application settings, like I do, you might have noticed that the IConfigManager really has no method for retrieving all the settings at a given scope. You can only add, delete and retrieve one setting. So, […]
SPG: Add settings to SPWebApplication or SPFarm
Posted by Johan Leino in SharePoint on November 17, 2010
If you are using the Patterns and Practices SharePoint Guidance library (SPG) to add application settings to SharePoint, like I do, and you are using the 2010 version of it there are some differences to the API that you might not be aware of as they are not so well documented in the included .chm […]
Unity 2.0 and Automatic Type Lookup
Posted by Johan Leino in C# on November 9, 2010
I just recently started to use the new unity 2.0 release and I thought I´d share an example of using the new automatic type lookup feature that was introduced with this release. A simple example Let´s say I´ve got the following solution structure in Visual Studio: Unity.Model– has the contract/interface ICustomerServices Unity.Infrastructure – has the […]
Unity and SharePoint – Part 3
Posted by Johan Leino in C#, SharePoint on March 12, 2009
Ok, this time I´ll be a little bit more hands on, I hope. The previous posts have been about Dependency Injection and Inversion of Control in general and then how to configure unity with xml. Here are the links to those previous post Unity and SharePoint – Part 2 Unity and SharePoint – Part 1 […]
Intellisense support for unity (and wss/moss) xml files
Posted by Johan Leino in Visual Studio on February 25, 2009
Andrew Connell has written about how to add intellisense support for when editing the SharePoint xml files. I have made an effort to include that support and also support for Unity config files. Firstly, a copy of the unity.xsd file is copied to “12/TEMPLATE/XML” and secondly I made an update to the custom catalog.xml file […]
Unity and SharePoint – Part 2
Posted by Johan Leino in C#, SharePoint on January 12, 2009
In the previous article about Unity and SharePoint I showed you about the basics of dependency injection and we touched a little bit about how to use unity. What we didn´t look at was how to configure the Unity framework. In this post we´ll go into that. Unity and SharePoint – Part 1 Unity and SharePoint […]
Unity and SharePoint – Part 1
Posted by Johan Leino in C#, SharePoint on January 10, 2009
I thought I would start a new blog post series about how to use dependency injection in SharePoint, and more specific the Patters and Practices implementation of such a pattern, Unity. Unity and SharePoint – Part 2 Unity and SharePoint – Part 3 Here are some useful links along the lines of this topic: How To: […]