导航

2011年4月18日

摘要: 异常消息与特定技术有关,.NET异常同样如此,因而WCF并不支持传统的异常处理方式。如果在WCF服务中采用传统的方式处理异常,由于异常消息不能被序列化,因而客户端无法收到服务抛出的异常,例如这样的服务设计:[ServiceContract(SessionMode = SessionMode.Allowed)]public interface IDocumentsExplorerService{ [OperationContract] DocumentList FetchDocuments(string homeDir);}[ServiceBehavior(InstanceContextMode 阅读全文

posted @ 2011-04-18 21:00 口渴的火麒麟 阅读(186) 评论(0) 推荐(0) 编辑