Hi all,
I have a problem with a service. The service is a Duplex NetTcp Service with a Client implementing a callback contract.
The client calls the service every 5 second. If the call takes more then 5 seconds the client abort and close the channel and then try again after 5 seconds. This works fine.
But when I enter a long lock (more then 5 seconds) on the service side and then leave the lock the clients still get a time out exception. The State property on the ServiceHost says it is open. Anyone know what the problem is?
I have posted a zip file containing the complete solution and source code on if anyone would like to look at it:
https://regtransfers-sth-se.diino.com/download/andreasdrake/share/DuplexWCF.zip
The service is hosted in a console application and you can enter the lock by pressing 'p' and then leaving the lock by pressing 'r'.
The client will start a timer immediately on start up and on every tick it will call the service.
All help is appreciated
/Andreas
AndreasD