DCSIMG
SDP - MEF (Real-Life patterns) - Bnaya Eshet

Bnaya Eshet

Disclaimer

SDP - MEF (Real-Life patterns)

SDP - MEF (Real-Life patterns)

MEF, Compose, Import, ImportMany, Import, .netOn 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 in the composition
  • Are the plug-in assemblies included in the deployment path
  • Are the plug-in dependencies included in the probing path
  • Is the Silverlight XAP included in the application
  • Use Strong Name and versioning policy
  • Do not refer to imported properties during construction time, use IPartImportsSatisfiedNotification
  • Check that IEnumerable<T>’s are decorated with [ImportMany] as long as they come from multiple exports.
  • Remember that errors in nested dependencies are sometimes obscured
  • Use AllowDefault=true when nulls are permitted
  • Use ComposeExportedValue for including mocks of your dependencies
Digg This

Comments

No Comments