Tag Archives: csharp

Sharing single Configuration in Multiple projects

By | October 12, 2011

Recently I have came across to a problem where I need to share the same configuration file in multiple projects under the same solution. Well, I think it is very common scenario where a single Application Configuration File (app.config) or Web Configuration File (web.config) needed to be used to multiple projects on the same solution. Hence I thought… Read More »

Looking at .NET Source code from Visual Studio

By | October 9, 2011

Its been a number of days when I last posted in DailyDotnetTips, but I always find fun in posting something here. Today I will talk about how you can get integration of Source code server with your .NET programs so that you can easily see the Source code of the .NET library while you debug. By source code… Read More »

Setting up Policies for Extensible Parts in MEF

By | September 7, 2011

Part Lifetime is one of the most important hindrances that we face while working with MEF. It is very important to understand how the parts are going to be shared between plugins such that having been so much open ended, 3rd party plugins remain separated to the objects that you do not want to be shared outside.  In… Read More »

Use of ImportConstructor to inject Constructor code in MEF

By | September 6, 2011

Just like what I have talked for so long in my blog entries about Import, ImportConstructor is another attribute that you can annotate only for a constructor. Sometimes it is needed to have some kind of Dependency that needs to be injected while constructing the object.  In case of a normal Import, the Property is set using Default… Read More »

Working with CompositionBatch in MEF

By | September 4, 2011

CompositionBatch is a new type introduced with MEF library that allows you to individually deal with Part instances. Generally when we are in a situation that we need to manually handle certain type, or more precisely when we need to create the types manually ourselves, it is recommended to use CompositionBatch. Basically you thing think CompositionBatch is just… Read More »

Allow Recomposition in MEF

By | September 3, 2011

MEF supports an opt-in feature that allows recomposition of the Import when the underlying object is changed either explicitely by the user or in the Catalog.  The Recomposable Import unit is called live import as it automatically changes the object cycle when actual underlying object is changed. Today I will discuss how exactly this works in MEF and… Read More »