简单的 IoC 容器 BarbarianIOC
- 授权协议: CPOL
- 开发语言: C#
- 操作系统: Windows
- 软件首页: http://www.codeproject.com/Articles/552514/BarbarianIOC-A-simple-IOC-Container
- 软件文档: http://www.codeproject.com/Articles/552514/BarbarianIOC-A-simple-IOC-Container
软件介绍
BarbarianIOC 是一个简单的 .NET 实现的 IoC 容器,示例代码:
Container = new Container();
int someMockAge = 23; // this could come from anywhere (App.Config / database etc etc)
//Register ALL components
container.RegisterComponents(
//where you can use concrete type
new Component().For<Foo>().WithInstanceMode(InstanceMode.Transient),
//or you can use an interface and it's implementation
new Component().For<IBaz>().ImplementedBy<Baz>().WithInstanceMode(InstanceMode.Transient),
//and you can also declare singleton instance mode if you like
new Component().For<SomeIBazDependantClass>().WithInstanceMode(InstanceMode.Singleton),
//and even supply some non IOC provided constructor params by way of an anonymous object
new Component().For<SomeFooDependantClass>()
.DependsOn(new
{
age=someMockAge
})
.WithInstanceMode(InstanceMode.Transient)
);
//allow the container to wire stuff up (essentially create Expression.New for all
//components to allow Container to compile and create some quicker lookup delegates)
container.WireUp();
Web开发权威指南
[美] Chris Aquino,、[美] Todd Gandee / 奇舞团 / 人民邮电出版社 / 2017-9 / 99.00元
本书在知名培训机构Big Nerd Ranch 培训教材的基础上编写而成,囊括了JavaScript、HTML5、CSS3等现代前端开发人员急需的技术关键点,包括响应式UI、访问远程Web 服务、用Ember.js 构建应用,等等。此外,还会介绍如何使用前沿开发工具来调试和测试代码,并且充分利用Node.js 和各种开源的npm 模块的强大功能来进行开发。 全书分四部分,每部分独立完成一个项......一起来看看 《Web开发权威指南》 这本书的介绍吧!
