帝者师

导航

2016年3月15日

在ServiceStack服务中使用MEF容器

摘要: 1.ServiceStack服务拥有自身的容器—Funq.Container 当我们使用接口注入的方式调用底层方法时,我们需要在AppHost中重写Configure(Funq.Container container)方法,在方法中添加container.RegisterAutoWiredAs<T, 阅读全文

posted @ 2016-03-15 10:24 帝者师 阅读(574) 评论(3) 推荐(0)