i) 用户和邮局;服务器应用程序,利用世界功能基金进行通信。 在每个海关会议的信息中增加一些信息,即把客户的WCF频道划入“ClientChannelProxy”级,并利用“团结拦截”的延伸,在使用方面增加我的客户信息。
IUnityContainer container = new UnityContainer();
container.AddNewExtension<Interception>();
container.RegisterType<IClientService, ClientServiceProxy>();
container.Configure<Interception>().SetInterceptorFor<IClientService>(new
TransparentProxyInterceptor());
这对客户来说是值得称道的,因为可以按上述代码对统一集装箱进行没收和拦截。
But how to setup unity and interception on the server side? My WCF service is configured in a .SVC file, i don t have any possiblity to configure interception and getting my aspects executed.
<%@ ServiceHost Language="C#" Debug="true" Service="Test.ClientService" %>
<!-- How to configure Unity Interception for this WCF-Service ? -->
Would ne nice if anyone could help me getting it working. Thanks!