摘要:
讲座内容: 通过对WCF服务进行配置,服务实例的生命周期能够被限制在请求过程中,客户端会话(代理的实例)的持续过程中,甚至在单件服务中保持到“永远”。根据客户端期望的调用模式,状态处理的需求,以及对于服务请求所期望的吞吐量,不同的应用程序对于服务生命周期的正确选择是不同的。在WCF中,实例模型控制着服务对象分配的方法以处理请求,根据服务类型的不同的实例模型,对于服务端点的每个请求都会被适当的服务对... 阅读全文
摘要:
讲座内容: 当我们在构建分布式企业系统的时候,多种类型的消息交换能够满足不同通讯模式的需要。在本次课程中,我们将通过演示讨论不同类型的消息模式并且向大家介绍如何使用它们来满足服务中不同的部署和通讯需求。例如,使用MTOM和流技术对于大消息的处理,讨论如何使用经典的消息交换模式,讨论服务契约设计所带来的影响,以及在通讯方面对于“请求/回应“的单向操作和回调操作(双向)。另外,对于经典的发布者与订阅者... 阅读全文
摘要:
Last time I discussed how we could in a hypothetical future version of C# allow delegate types to be covariant in their return type and contravariant in their formal parameter types. For example,... 阅读全文
摘要:
In the last two posts I discussed the two kinds of variance that C# already has -- array covariance and member-group-to-delegate conversion covariance (on return types) and contravariance (on for... 阅读全文
摘要:
Last time I discussed how array covariance is broken in C# (and Java, and a number of other languages as well.) Today, a non-broken kind of variance supported by C# 2.0: conversions from method g... 阅读全文