Mixing MEF and PIAB

The Policy Injection Application Block (PIAB) provides a way to dynamically apply cross-cutting concerns by configuration or attributes. The combination of this technique and composition using Managed Extensibility Framework (MEF) can be realized through the use of a factory method as demonstrated here. The example demonstrates PIAB by the use of a CallHandler specifically for…


Upgrade SQL CE Database from 3.1 to 3.5

var engine = new System.Data.SqlServerCe.SqlCeEngine(“Data Source=” + filename); engine.EnsureVersion35(filename);   –HELPER CLASS—     public static class SqlCeUpgrade     {         public static void EnsureVersion35(this SqlCeEngine engine, string filename)         {             try             {                 SQLCEVersion fileversion = DetermineVersion(filename);                 if (fileversion == SQLCEVersion.SQLCE20)                     throw new ApplicationException(“Unable to upgrade from 2.0 to 3.5”);                …


Just Released: Microsoft Enterprise Library 5.0

See details here: http://msdn.microsoft.com/en-us/library/ff632023.aspx and read Grigori’s post here: http://blogs.msdn.com/agile/archive/2010/04/20/microsoft-enterprise-library-5-0-released.aspx  


Clean-up your desktop with fences

Neat tool for grouping “stuff” on your desktop – fences from Stardock.com – go here


New Feature Builder Power Tools

Those of you interested in Software Factories and Visual Studio Automation may find it relevant to investigate the new Feature Builder Power Tools. I will be happy to hear about your experiences and suggestions. Exerpt from landingpage: Feature Builder is a Power Tool for Visual Studio 2010 (preview) which helps you easily create rich Visual Studio extensions. These…


Free Book: A Guide to Claims-Based Identity and Access Control

Another free book from our Patterns&Practices team about something that you know you ought to know a little about 🙂 – Claims Based Identity and Access Control. Get the Book here – http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=4c09ffe4-43dd-4fcc-be35-c897c9bc4386 Code samples here – http://www.microsoft.com/downloads/details.aspx?familyid=33829BCF-F5EA-4650-B807-57C63A753753&displaylang=en  


Dynamically Loading ModuleCatalog in Composite (PRISM) Silverlight Application

Intercept the Run method of your bootstrapper by defining a new Run method, fetch the list of modules (list trimmed to the user in question of course) and populate the catalog from this. poc code? Here you are (note I am using a custom RIA domain service to trim the list of modules) public class…