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...

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. ...

Catalogs (code cartoon)

Monday, February 15, 2010

Catalogs (code cartoon) catalog are search boundary for the composition container.         you can read more about MEF on MEF for beginner series, the TOC is available here   תגים של Technorati:‏ Extensibility,MEF,Composition,catalogs
no comments

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...

does MEF apply the SOA paradigm?

Tuesday, February 9, 2010

does MEF apply the SOA paradigm?   in this post I'm going to argue that the Manage Extensibility Framework (MEF), is actually applying to the 4 tenet of Service Orientation Architecture (SOA), therefore MEF is actually, in-process implementation of the SOA paradigm.   Background when we speaking about SOA we used to think about technologies like web services and WCF, which is cross process technologies. but does SOA define that services should always be consumed from the clouds? local services like loggers, rule engine, cache and more are...

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 (Recomposition policy) – part 7

Friday, January 15, 2010

MEF for Beginner (Recomposition policy) - part 7       this is the 7th post of the MEF for Beginner series, the series TOC is available here.   the current post will focus on the recomposition policy.   What is the recomposition policy? by default the composition should assign the Import only once (trying to recompose on already composed import will result with exception). using the recomposition policy we can define that our Import is allowing reassignment whenever the container is having...
no comments

Secured directory catalog

Thursday, January 7, 2010

Secured directory catalog   I was discussing the question of how to secure your MEF application on this post  where I was publishing replica of the MEF bits hopping that the Secured Directory Catalog will find its way into the MEF core.   but as sad as it is :(, it won't make into the core. you can read more about the MEF team consideration here.   anyway Glenn Block has suggest a solution for haw to build the secured catalog without rewriting half of the...
no comments

MEF for Beginner – Part 5 (Import)

Saturday, January 2, 2010

MEF for Beginner – Part 5 (Import) this is the 5th post on MEF for beginner series, you can see the previous post here, here and here. this post will focus on the Import aspect. we will soon learn about the different signature that can be apply with the Import decoration, but before starting with that, we should introduce the Lazy<T> class which is a first citizen at the MEF world, and part of the CLR 4 types.   Lazy<T> definition Lazy<T> is used in order of delaying the actual...