DCSIMG
CLR 4,MEF,.net - Bnaya Eshet

Bnaya Eshet

Disclaimer

Browse by Tags

All Tags » CLR 4 » MEF » .net (RSS)
MEF for Beginner (Deployment Catalog) - part 12
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
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 . PartCreator was...
does MEF apply the SOA paradigm?
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...
MEF for Beginner (repeatable metadata) - part 9
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...
MEF for Beginner (Metadata) - part 8
MEF for Beginner (Metadata) - part 8   this is the 8th post of the MEF for Beginner series, the series TOC is available here .   this post will focus on the basics of MEF metadata capabilities, the next post discuss the ability of multiple metadata decorations .   What is Metadata? metadata is piece of compile-time information that can be attached to exported part . metadata is adding peripheral information to the part, (metadata information may define which operation system supported...
MEF for Beginner (Recomposition policy) - part 7
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...
MEF for Beginner (Part Creation Policy) - part 6
MEF for Beginner (Part Creation Policy) - part 6 this is the 6th post of the MEF for Beginner series, the series TOC is available here .   this post and a few that will follow will cover some of the policies options available with MEF . we will start with the instantiation policy .   How do we define policy ? we will define policy as instruction that will guide behavioral decisions that related to the compose-able parts (the imported and exported parts behaviors).   What is instantiation...
MEF for Beginner: TOC
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   תגים של Technorati:‏ MEF...
Securing the MEF Directory Catalog
Securing the MEF Directory Catalog   during my MEF lecture, on of the attendant (a fellow from check-point) ask the following question: " How can we secure our catalog ?"   this is a really good point, because without securing our catalog, hackers can exploit our extensibility model for injecting malicious code.   so can we defend our MEF gates? the short answer is yes. and the long one is yes but…   Secure techniques I will mention 3 techniques, each defend our code...
Code cartoons - MEF
Code cartoons – MEF     The super hero agency
Why and When slides from my MEF lecture
Why and When slides from my MEF lecture   some time we are so enthusiastic about the technology, that we forgot to explain the Why and When .   so I thought it could be nice to share those aspects with you.       when we asking Why to use the MEF technology we can think on the following reasons: • Simple to understand • Simple to implement • The CLR 4 Extensibility standard • Contract based model (type safe) • Easy deployment (support copy / paste deployment) • Zero configuration...
MEF for Beginner – Part 3 (Hello Silverlight)
MEF for Beginner – Part 3 (Hello Silverlight) in this post we will cover the basic steps that is needed for building your first Silverlight MEF application. you can find more about the MEF on part 1 , part 2 of this series, the series TOC is available here . the following instructions will lead you through very simple steps of building simple Silverlight shell application that can consume plug-ins . this post is written on Visual Studio 2010 and Silverlight 4.0 ( using Visual studio 2008 and Silverlight...
MEF for Beginner – Part 2 (VS 2008)
MEF for Beginner – Part 2 (VS 2008) How To build your first MEF application in this post we will cover the basic steps that is needed for building your first MEF application. you can find more about the MEF concept on part 1 of this series.   the next following instructions will lead you through very simple steps of building simple Logger application. this post is written on Visual Studio 2008 , use this link for the Visual studio 2010 version. the Silverlight version will be discuss on the...
MEF for Beginner – Part 2 (VS 2010)
MEF for Beginner – Part 2 (VS 2010) How To build your first MEF application   in this post we will cover the basic steps that is needed for building your first MEF application. you can find more about the MEF concept on part 1 of this series.   the next following instructions will lead you through very simple steps of building simple Logger application. this post is written on Visual Studio 2010 , use this link for the Visual studio 2008 version. the Silverlight version will be discuss...