摘要: 问题为Binding对象设置了OpenTimeout未达到预期的效果。解决 //打开连接 var co = (ICommunicationObject)service; var ar = co.BeginOpen(null, null); if (ar.AsyncWaitHandle.WaitOne(new TimeSpan(0, 0, 5))) { co.EndOpen(ar); ... 阅读全文
posted @ 2012-09-26 10:59 beta2013 阅读(241) 评论(0) 推荐(0) 编辑