autofac Adding services after container has been built

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);



Autofac: cannot resolve dependency using factory after ContainerBuilder.Update()

http://stackoverflow.com/questions/33372771/autofac-cannot-resolve-dependency-using-factory-after-containerbuilder-update

 

Is it possible to remove an existing registration from Autofac container builder?

http://stackoverflow.com/questions/5091101/is-it-possible-to-remove-an-existing-registration-from-autofac-container-builder

 

posted @ 2016-06-09 17:26  shiningrise  阅读(282)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css