最新评论

re: What limit my connections? 江南白衣 2007-10-17 15:57  
<endpoint address="MEX" binding="mexTcpBinding" contract="IMetadataExchange" />

把mexTcpBinding改个不一样的端口
re: Exception Handling Application Block与WCF Clark Zheng 2007-10-08 09:38  
尖端科技,收藏先吧
学习学习。
re: Exception Handling Application Block与WCF Ray_bihpgh20 2007-10-05 23:38  
感谢简爱的建议,我想简爱的InvokeMyMethod指的就是我的Divide方法,是不?
感觉简爱小姐的第一种写法比较简洁,谢谢。
try{
ChannelFactory<Imath> factory=new ChannelFactory<Imath>();
mathProxy=factory.CreateChannel();
}
.
.
finally{
IChannel channel=mathProxy as IChannel;
....}


既然factory.CreateChanel()方法创造的是通道对象,它当然实现了IChannel接口,我觉得没必要这样显示声明了,可以这样释放通道对象
Imath mathProxy=factory.CreateChannel();
using(mathProxy as IDisposable)
{
mathProxy.InvokeMyMethod();
}
或者
Imath mathProxy=factory.CreateChannel();
mathProxy.InvokeMyMethod();
ICommunicationObject channel=mathProxy as ICommunicationObject;
channel.close():
另外,支持博主!
re: Exception Handling Application Block与WCF 高海东 2007-10-05 17:26  
不错 ,我们也用这个开发
<2012年2月>
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

导航

统计

公告

昵称:Ray_bihpgh20
园龄:5年3个月
粉丝:2
关注:0

搜索

 
 

常用链接

随笔分类

随笔档案

最新评论