JogoShugh / IronPythonMef

Import and Export types to and from IronPython for use with MEF -- the Managed Extensibility Framework for .NET
11 stars 5 forks source link

IronPythonScriptCatalog - Fixes an early design error and allowed better interop #4

Closed brunomlopes closed 8 years ago

brunomlopes commented 9 years ago

Hi,

This is a bit of a big PR, but I think it fixes the early design error of using the ComposableParts directly to manage imports and exports.

What I've done is create an IronPythonScriptCatalog that's similar to a TypeCatalog, except that it reads from an ironpython script file. It allows for better interop with the rest of the MEF machinery, and I think clears up the path for some improvements like the ones mentioned on #3 .

Also, I've updated the examples, and I think that they show how easier it is to work with the catalog :smile: . It's still a bit barebones, but I'd love a review and sanity check. Ideally I'd be able to improve on it to include creation policies and custom metadata.

jaredbroad commented 9 years ago

+1 please merge!