creating extensible application using mef

Post on 12-Jan-2015

2.137 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Creating extensible application using MEF session delivered at DDD Belfast, 4th April 2009. Code samples are available on blog.benhall.me.uk

TRANSCRIPT

Creating extensible application using MEF

@Ben_HallBen@BenHall.me.ukBlog.BenHall.me.uk

Agenda

• MEF ABCs• Extensibility in .Net 2.0• Extensibility with MEF• MEF Internally

Managed Extensibility Framework

Internal and External

MS-PL

[Export]

I have something to offer

[Import]

I need something

Catalog

I know about some exports

Container

I know about everything

HELLO WORLDDEMO

LIFE IN 2.0DEMO

LIFE WITH MEFDEMO

BEYOND 3RD PARTY ADDINSDEMO

BEING SELECTIVEDEMO

Visual Studio 2010

In summary...

Summary

• Need to compose parent for child imports to be populated

• Allows externals to hook-in• Allows internals to be decoupled• Override your built in defaults• Part of .Net 4.0 • Available today from Codeplex

Ben HallBen@BenHall.me.ukBlog.BenHall.me.uk

Thank you

Resources

• http://blog.BenHall.me.uk• http://www.codeplex.com/mef• http://blogs.msdn.com/gblock

Flickr Images

• http://www.flickr.com/photos/m0php/530526644/• http://www.flickr.com/photos/dunechaser/

2918021174/• http://www.flickr.com/photos/

mag3737/1914076277/• http://www.flickr.com/photos/

25501212@N05/2934269081/• http://www.flickr.com/photos/zen/2273186263/• http://www.flickr.com/photos/leon_homan/

2856628778/

top related