共有 0 个贴子
没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > fluentioc |
fluentioc
|
0 | 0 | 30 |
贡献者 | 讨论 | 代码提交 |
Do you...Find configuring Windsor using XML a real pain? FluentIoC is XML free!
Want an easy way to resolve your services? Simple methods for resolving services!
Forget to add services/components to the config file? Easy to mass import services!
Rename properties/factory methods and forget to update the config file? Everythings configured in code so any errors will be caught in compilation!
Examples
IoC.Configure(c =>
c.Register()
.ImplementedBy()
.SetProperty(b => b.Message = "Lamda's rocks!")
.UsingFactory(f => f.CreateBar()),
c.RegisterAssembly("Project.Services")
.ImplementedBy("Project.Components")
);
var bar = IoC.Resolve();
var foo = IoC.Resolve();