This project is read-only.


[IOC] Support AutoFac as IoC container


Closed Oct 11, 2011 at 4:30 PM by GeertvanHorrik


GeertvanHorrik wrote Oct 9, 2011 at 6:53 PM

Added nuget references to solution

GeertvanHorrik wrote Oct 11, 2011 at 4:30 PM

Cannot be supported, AutoFac does not support runtime registration of elements to existing containers.

credib wrote Oct 20, 2013 at 7:32 AM

It is wrong - sample code:

var updater = new ContainerBuilder();
updater.Register(c => new B()).As<IB>();

// Add the registrations to the container

GeertvanHorrik wrote Oct 20, 2013 at 3:25 PM

We are now working towards a better configurable support for external containers. The Catel 3.8 nightly releases now use the dependency resolver.

To implement Autofac, see the documentation: