我对Prism 7.1.0.431有一个非常大的问题。
我想用这样的拦截器在Unity容器中注册类型
container.RegisterType(new Interceptor<TransparentProxyInterceptor>(), new InterceptionBehavior<MyBehavior>());
但是这是不可能的。 containerRegistry没有向拦截器注册的方法。
在我尝试制作时的另一面
containerRegistry.GetContainer()
并且直接在UnityContainer实例上调用registerType,它在RegisterType方法上失败
“InjectionMember”类型在未引用的程序集中定义。您必须添加对程序集'Unity.Abstractions的引用,
“InjectionMember”类型在未引用的程序集中定义。您必须添加对程序集'Unity.Abstractions的引用,
您应该实际添加对Unity.Abstractions
的引用到您的项目。