I've never heard of anyone trying to use it before. You might have to try it out and let us know if you run into difficulty.
- Jeff On Tue, Dec 18, 2012 at 5:36 AM, Piotr Nestorow <piotr.nesto...@systemverification.com> wrote: > 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 > _______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users