Browse by Tags
All Tags »
Extensibility »
SELA (
RSS)
MEF - Best Practice In this post I will offer MEF practice that may ease your MEF life . one of the MEF headache is to understand what's goes wrong, when MEF reject the composition , you can read more about MEF diagnostic in this post. Most of the obscure loading failure happens when your Export dependencies doesn't satisfied . in those case you solely relay on the MEF error message which is not enough in cases of deep dependencies graph. It will normally occurs when you are...
SDP - MEF (Real-Life patterns) On the last day of the SDP at Crown Plaza Hotel, Tel Aviv. I was lecturing about Real-Life scenario of MEF failures . the lecture was focusing on diagnostic , solutions and testing . I want to thanks all attendant's, It was the after lunch session and you were bravely kept your eyes open. the presentation pdf can be found here . you can use the following check-list as recommended diagnostic process . Diagnostic Check-List Is the instance included...
Dynamic MEF isn't thread safe by nature this post focus a pitfall which you should be aware in order to avoid sporadic crashes. In general most of MEF operation are operate once at the application initialization stage, and it normally happens on a single thread. this may not be true when you need to dynamically load MEF parts (using GetExportedValue or SatisfyImportsOnce ). unfortunately MEF underline is using non concurrent dictionary which is not thread safe for the above operation...
Exporting non Exportable types this post extend Glenn Block 's post about " Poco, Mef, and custom type systems. Are you ready to take the red pill?" the post is adding a compile time attribute export model , Directory catalog and migrate Glenn code to VS 2010 . It is very recommended to read Glenn Block 's post before reading this one. the code sample for this post can be download from here . Summarizing Glenn's post in general Glenn show how to add attributes...
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 [ Export ] public class MyPlugin { public MyPlugin() { // the logger import doesn't satisfied yet // the next line will result with NullReferenceException...
Testing and Debugging MEF, Tips - Part 2 this is the second post of a series that will offer some tips about testing and debugging your MEF -able component and application. in this post we will focus about debugging the most common, and most confusing, MEF failure . Assembly Loading Failure the most common MEF runtime failure occurs because of missing assembly which contain the MEF parts (Import, Export) or the parts dependencies (like 3rd party components). under the hood MEF...
Testing and Debugging MEF, Tips - Part 1 this is the first post of a series that will offer some tips about testing and debugging your MEF -able component and application. in this post we will focus about exporting Mock objects. the code sample for this post can be download from here . Prerequisite if you are not familiar with Mocks you better read more about this subject before proceeding with this post (in short Mocks are fake object which is use for separate dependencies during...
if you want to learn more about MEF backstage you can find more information under the following post: MEF: What and why http://blogs.msdn.com/b/hammett/archive/2010/05/29/mef-what-and-why.aspx
C# IntelliSense extension for VS 2010 V1.9 new release to my C# IntelliSense extension . this is a major release that focus on bug fix, tooltip support and styling. you can download the extension from Visual Studio Gallery here . the extension code is available here .
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 for Beginner (Import from Xaml) - part 11 this is the 11th post of the MEF for Beginner series, the series TOC is available here . this post will focus on Importing mef parts directly from the Xaml . the code sample for this post is available here . assuming that we have the following exports : Code Snippet class DemoStrings { [ Export ( "MyTag" )] public string Text1 { get { return "Hello world" ; } } ...
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...
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
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...
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...
More Posts
Next page »