English 中文(简体)
WCF 保持和备用战略
原标题:WCF Keep Alive and Backup Strategy
  • 时间:2011-10-27 00:45:37
  •  标签:
  • wcf
  • backup

这是可能的(使用行为和IClientMessageInspector)。 在发出电文之前改变 com调渠道?

我需要改变这一点,因为我的代表有一个后备/主要战略。

最佳回答

根据你的意见,如果初级服务脱节,你希望能够在中点转换服务。 我不认为这样做有办法,至少不奇怪。

一旦建立了通信渠道,它就非常固定,直到关闭(或流产)。 没有任何办法将其从一个终点转到另一个(后)终点——你甚至不这样做,因为代理仍然使用主要终点。

根据我对妇联的理解,如果你最接近的话,客户就会发现初级服务没有反应(很可能通过时间分配),然后可以转而为二级/后备服务配置一个代理。

现在请<>might>。 页: 1 IlientMessage Inspector.BeforeSendRequest 检查一下,看看该服务是否反应过,如果它不做出反应,则试图以后备服务端点生成新的代理,并寄送信息。 我不知道这是否会奏效,即使它把我打成一udge子。

Simplest solution is that the client simply switches to the alternate service endpoint if the primary endpoint is down, IMO.

问题回答

旧读,但未来参考。

我认为,WCF Routing(NET4)是你寻找的,名称为“System.serviceModel.Routing.Routing Service”。 查询网页上的“高可用性”,

http://www.code-magazine.com/articleprint.aspx?quickid=1009051&printmode=true”rel=“nofollow”br=“Practical Messaging Scenarios with WCF 4”1 : “备份清单向鲁宾服务局表明,如果无法提供一级终点,即1Wayservice1(即不能答复),则鲁宾服务处应尝试从1Way Services2开始的随后各端点,直至1Way Services4结束。





相关问题
Backing up my database is taking too long

On a windows mobile unit, the software I m working on relies on a sdf file as it s database. The platform that the software is targeted towards is "less than optimal" and hard resets every once and a ...

Cognos LAE Backup Automation (Batch File?)

Within Cognos 7.4 security.. one would create an LAE file to export all their users... directions here... http://www.cognos-install.co.uk/articles/backups/access_manager_export_to_lae.asp Now you ...

backup SQL Server 2005 database without data

I have one stored procedure to backup the database. It will backup metadata as well as data. Is there any option to back up the database with out data. ie, back up only the schema (Empty tables). I ...

SQL Server 2008 Auto Backup

We want to have our test servers databases updated from our production server databases on a nightly basis to ensure we re developing on the most recent data. We, however, want to ensure that any fn, ...

mysql dump stops when a row is updated

When i try to get a dump of a mysql database, the dump stops when a row in it is updated. How can i prevent that? I already tried following options with no result: -f (forces continu even when error)...

热门标签