1
我想捕获一个异常,然后调用正在运行的WCF通道工厂的Abort方法,但我不确定如何去做?如何在使用spring.net wcf创建服务时调用WCF service.Abort():channelfactory
例如
<wcf:channelFactory id="ShoppingService"
channelType="solution.TShoppingService, solution"
endpointConfigurationName="ServiceEndPoint" />
服务处于中止状态。
我得到尽可能
IApplicationContext context = ContextRegistry.GetContext();
context["TShoppingService]...
服务的参考,但我怎么调用中止方法?
不熟悉spring.net,但不能投你的服务参考'ICommunicationObject'和调用'中止()'? – Tim