Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?
摘要: I recently ran into a concurrency issue with WCF on a customer's system. I'll get into the details later (though not too much detail... NDA ;) ), but it involved some testing of the various combinations of InstanceContextMode and ConcurrencyMode settings for a WCF service. The table below is 阅读全文
posted @ 2011-02-01 13:22 Angelo Lee 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 服务调用的目的体现在对某项服务功能的消费上,而功能的实现又定义在相应的服务类型中。不论WCF服务端框架处理服务调用请求的流程有多么复杂,最终都落实在服务实例的激活和操作方法的执行上面。WCF中的实例管理(Instance Management)旨在解决服务实例的激活和服务实例生命周期的控制。会话(Session)的目的在于保持来自相同客户端(服务代理)多次服务调用之间的状态。从消息交换的角度来讲,会话通过消息识别机制判断调用某个服务的消息来源,从而将来自相同客户端的所有消息关联在一起。所以,会话实现了消息关联(Message Correlation)。实例与会话是WCF非常重要的两个特性,它们 阅读全文
posted @ 2011-02-01 13:08 Angelo Lee 阅读(393) 评论(0) 推荐(0) 编辑