开发者

WCF - How to do Load Balance with WCF 4.0 Router Service

Have you ever learned about WCF Router Service 4.0?

I know that this new feature has a lot of advantages, but i have some questions about it...

  1. Where can I find the documentation?
  2. How to implement a logic for Load Balance over WCF Router Service 4.0?
  3. How does WCF Router Service deal with services that has callback contr开发者_Go百科acts?


  1. you can use this example 2.you can use enter link description here this example

3.like cisco router you must change example 1:

  • change all conection to wsdual -define Icall back contact -change router to contract="System.ServiceModel.Routing.IDuplexSessionRouter" -change client to:

InstanceContext ctx = new InstanceContext(_CallBack); _Client = new DuplexChannelFactory(ctx, _EndpointName); _Client.Open();

            _Chanel = _Client.CreateChannel();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜