Testing and Debugging MEF, avoiding misconceptions – Part 3

Friday, October 29, 2010

Testing and Debugging MEF, avoiding misconceptions - Part 3 this is the 3rd post of this series and it will discuss common misconceptions which may lead unexpected behavior and long debugging nights.   Initialization issues the first misconception occurs when developer are trying to access imported property at construction time. NullReferenceException public class MyPlugin {     public MyPlugin()     {   // the logger import doesn't satisfied yet         // the next line will result with NullReferenceException         Logger.Write("MyPlugin initialized");     }            public ILogger Logger { get; set;...

MEF for Beginner (Deployment Catalog) – part 12

Thursday, April 1, 2010

MEF for Beginner (Deployment Catalog) - part 12   this is the 12th post of the MEF for Beginner series, the series TOC is available here. this post will focus on Deployment Catalog.   the code sample for this post can be found here.     What is MEF Deployment Catalogs? the deployment catalog is actually a redesign of the older package catalog. it enable to load parts from xap packages a-synchronically.   Code sample the following code sample depend on 2 assembly that...

Rx – for beginners (part 11): ObserveOn

Monday, March 29, 2010

Rx - for beginners (part 11): ObserveOn this post is the 11th in a series of posts about the new Reactive Framework (Rx). the series TOC can found here. in this post we will focus on the ObserveOn…   the code sample for this post can be found here.   sometime it is important that the observation will occurs on specific thread. for example GUI application like (WinForm, WPF and Silverlight) throw exception whenever UI component accessed on thread different than its creation thread.   ObserveOn...

recommending VS 2010 XAML IntelliSense Extension

Friday, March 26, 2010

recommending VS 2010 XAML IntelliSense Extension a pal named Karl had published a very useful plug-in to VS 2010. this plug-in is making Xaml writing so much better experience with enhanced IntelliSense.   if you doing some Xaml work using VS 2010 you should consider to download this plug-in. the download is available from the following link: http://karlshifflett.wordpress.com/2010/03/21/visual-studio-2010-xaml-editor-intellisense-presenter-extension/#comment-2228   Features Pascal case lookup Optional narrowing list filter Filtering based on item type xmlns IntelliSense options...
no comments

MEF Preview 9 released

Friday, February 26, 2010

MEF Preview 9 was released   MEF preview 9 changes will be reflected the in the release of .NET 4.0 and Silverlight 4.0.   except from bug fixing, there was some changes to the API, most of the changes is related to  System.ComponentModel.Composition.Initilization.dll, which is not yet available only for none Silverlight application :-(   here is a short list of API changes: PackageCatalog were brought back, and changed it name to DeploymentCatalog. ...

MEF for Beginner (Catalogs) – part 10

Saturday, February 13, 2010

MEF for Beginner (Catalogs) - part 10 this is the 10th post of the MEF for Beginner series, the series TOC is available here. this post will focus on Catalogs.   What is MEF Catalogs? MEF container is using catalogs as its search area definition. the catalog have instructions about where can MEF look for the compose-able parts (import and export definitions). in short catalogs are actually a discovery instruction.   Out of the box catalogs MEF is shipping with the following out of the box...

MEF for Beginner (repeatable metadata) – part 9

Friday, January 29, 2010

MEF for Beginner (repeatable metadata) - part 9 this is the 9th post of the MEF for Beginner series, the series TOC is available here. this post will focus on having repeatable metadata definition (cases like definition of multiple categories). if you not familiar with the MEF metadata concept you may want to read part 8.  Bad practice for repeatable metadata In order to explain repeatable metadata, we will start by decorating export with untyped metadata declaration (which consider as bad practice, use typed metadata whenever you...

MEF for Beginner: TOC

Saturday, January 9, 2010

MEF for beginner is a blog series for developers that want to learn How To use the MEF (Manage Extensibility Framework) technology.   the following post is currently available for this series: Concept How To build your first MEF application Hello Silverlight A-sync Silverlight loading Import  Part Creation policy Recomposition policy  Metadata (part 1)  Metadata (part 2 – repeatable) Catalogs  Import from Xaml  Deployment Catalog   ...

MEF for Beginner – Part 4 (a-sync Silverlight loading)

Saturday, December 26, 2009

  MEF for Beginner – Part 4 (a-sync Silverlight loading) in this post we will continue from the point that we left our Silverlight application at part 3 of this series. the post will focus on how to consume external plug-ins using a-sync loading into Silverlight application using MEF. you can find more about the MEF on part 1, part 2 and part 3 of this series.   this post is written on Visual Studio 2010 and Silverlight 4.0 (using Visual studio 2008 and Silverlight 3 will need some minor...