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…

1

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”);                …

1

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  

0

Code Contracts

 pre-conditions, post-conditions, object invariants in .NET – go here

3

Share sourcecode between Silverlight and WPF Applications

Sharing code between Silverlight and WPF Applications has been a returning wish from several of the customers in our Microsoft Innovation Center in Denmark. The base class libraries are very similar, but obviously something is missing in the 3-4 MB Silverlight download you just installed on that iMac in your girlfriends officespace… therefore if you…

1

Security tips and code clips [german]

ThinkTecture’s Dominick Baier has helped MSDN in Germany to create a number of clips and How-To’s covering several aspects of security on the .NET platform. If you remember any german from school I would recommend you point your browser this way

0

Smart Clients from Greece?

Microsoft Code Name “Acropolis” has finally been released to the public as a technology preview.   Having played with some internal releases it has become clear to me what a huge amount of work the team has put into this technology. I would like to congratulate with this important milestone and will obviously help getting customer feedback….

0

ISB - Biztalk Services in the sky

If you haven’t done so already I recommend you take a look at our latest Biztalk Services CTP from the Connected Systems Division (http://connectedsystems.spaces.live.com/). Quite a few people has already commented on this and I will just forward you to some of the links I have found interesting: http://labs.biztalk.net/ http://blogs.msdn.com/stevemar/ http://blogs.msdn.com/clemensv/archive/2007/04/25/internet-service-bus.aspx   http://www.dennispi.com/  Have Fun!

0

Writing Test Code with Impersonation

Some of your (unit) tests may be required to run with predefined credentials, and if all your tests should run as one single identity your might as well use the command line runas.exe tool to start your testrunner (or whatever your favorite naming for this is). In some (rare?) occasions you may need to do…

2

EntLib 3.0 Released

The P&P team has finished the third major release of the enterprise library. See Tom’s post for more information. Try the new WCF integration with logging, exception handling and validation application blocks. Download from MSDN.   

1