I am developing a WCF application. In the app.config file, I am using reliableSession enabled. And my sendTimeOut of the binding is set to 10 mins. While testing the application, I am getting one issue, like I am disconnecting the network, and I am trying to connect to remote system, as I am enabled reliableSession,proxy it is waiting for 10 mins, then only throwing exception. Is there any attribute / property, which will help me to detect network connection available in the app.config file or as part of reliable session?
質問する
402 次
1 に答える
0
InactivityTimeout が役に立ちます。非アクティブのデフォルトのタイムアウト値も 10 分です。ネットワーク切断をはるかに早く検出したい場合は、要件ごとに非アクティブ タイムアウトを減らすことができます。 http://msdn.microsoft.com/en-us/library/system.servicemodel.reliablesession.inactivitytimeout.aspx
HTH、アミット
于 2012-08-08T10:10:34.430 に答える