接下来说ChannelListener和ChannelFactory。 ChannelListener是Service端的技术,用来侦听消息,创建信道栈,并为应用程序提供指向栈顶的引用。 我们不会直接使用ChannelListener,但是我们经常会使用到ServiceHost,殊途同归,其实也是用它来侦听消息。 static void Main(string[] args){ BasicHt... Read More
posted @ 2009-11-07 18:37
包建强
Views(1498)
Comments(0)
Diggs(1)
Channel分为2种:transport信道和protocol信道。 Service和Client都有一个信道栈,由多个信道组成,其中,transport信道位于信道栈的最底层,protocol信道位于信道栈的最上层。 protocol信道用于消息交互、安全、事务、日志。 transport信道用于transport和encoder。 信道栈又被称为Binding~~娃哈哈,终于找到了共性。 信... Read More
posted @ 2009-11-07 15:39
包建强
Views(3103)
Comments(1)
Diggs(0)
基于上文的Demo,我们观察到,在IIS宿主中,配置文件有以下特征: <system.serviceModel> <services> <service name="WcfService9.Service1" behaviorConfiguration="WcfService9.Service1Behavior"> &... Read More
posted @ 2009-11-07 13:09
包建强
Views(2339)
Comments(1)
Diggs(0)