MEF as ServiceLocator

Nov 26, 2011 at 6:38 PM

I read this: http://codebetter.com/glennblock/2009/08/16/should-i-use-mef-for-my-general-ioc-needs/

And arguments seems reasonable enogh (though saying frankly IMHO they are not critical for many projects).

What about similar Pro and Contras for usage of MEF just as ServiceLocator?:

container.GetExport(Of TestContracts.IClass1)()

It's 100% Service locator pattern isnt it? Anyone encountered any limitations/specifics using MEF as SL? 

Thanks!

Alex