Hi Is it possible to use Autofac in IronPython scripts? More exactly: Is it possible to use Autofac to find and register component types in an assembly and then use the components in the Python script?
Example code: import clr clr.AddReference('Autofac') import System import Autofac clr.ImportExtensions(Autofac) from Autofac import ContainerBuilder builder = ContainerBuilder() builder.RegisterAssemblyTypes(System.Reflection.Assembly.Load("Some.Assembly")) container = builder.Build() # some object o = container.Resolve[ISomeInterface]() o.SomeMethod() Any comments, examples, etc. ? Regards Piotr
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users