Enabling WCF openTimeout closeTimeout
I want to check and observe the timeout behavior between WCF client and service host. It is probably easy for getTimeout and sendTimeout to send a large stream of bytes that takes more than a few seconds and sets these timeout attributes to ridiculously low values.
However, since nothing can be done behind the serviceProxy.Open () or .Close () method calls, I think this is a good way to delay opening and closing WCF connections, cross the openTimeout and closeTimeout thresholds?
+1
icelava
source
to share
1 answer
Well, if you've parsed your contracts (as interfaces) correctly, you can mock the proxy instance that throws a TimeoutException and passes it to your code for use.
0
casperOne
source
to share