.NET技术

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年4月13日

摘要: 微软企业库v5.0可以对WCF rest 服务实现依赖注入1publicinterfaceIExampleService2{3IEnumerable<Example>GetAll();4}56publicclassExampleService:IExampleService7{8privatereadonlyIExampleRepositoryExampleRepository;9privatereadonlyIUnitOfWorkunitOfWork;10publicConfigService(IConfigRepositoryexampleRepository,IUnitOfW 阅读全文
posted @ 2012-04-13 23:07 瞬间飞舞 阅读(1557) 评论(0) 推荐(0) 编辑