2013年6月16日

WCF处理异常的方式

摘要: public static class WcfExtensions{ public static void Using<T>(this T client, Action<T> work) where T : ICommunicationObject { try { work(client); client.Close(); } catch (CommunicationException e) { client.Abort(); ... 阅读全文

posted @ 2013-06-16 13:15 360qq 阅读(172) 评论(0) 推荐(0) 编辑

导航