标签:
http://stackoverflow.com/questions/6173566/run-time-registration-with-autofac
Yes you can, using the Update
method on ContainerBuilder
:
var newBuilder = new ContainerBuilder(); newBuilder.Register...; newBuilder.Update(existingContainer);
http://stackoverflow.com/questions/5091101/is-it-possible-to-remove-an-existing-registration-from-autofac-container-builder
autofac Adding services after container has been built
标签:
原文地址:http://www.cnblogs.com/shiningrise/p/5572525.html