码迷,mamicode.com
首页 > 其他好文 > 详细

autofac Adding services after container has been built

时间:2016-06-09 18:27:54      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

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

 

autofac Adding services after container has been built

标签:

原文地址:http://www.cnblogs.com/shiningrise/p/5572525.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!