my Question goes like this:
How can I save the clients that are currently connected to a WCF service, so that the service can load them after it has been restarted?
My current Scenario is as follows:
I have clients that connect to a Service in a Publish /Subscribe way. The service keeps an internal list that stores the Client Callbacks, so the server can communicate with them at any given time.
The Clients do not change very often. Once a month or so a new Client gets added or one gets removed. They are online every time.
I would now like to be able to serialize the callbacklist with all the clients, so I can load them after the service has been restarted. This way the service could talk to the clients without having them to subscribe again.
- I'd like to avoid any client polling (e.g. firing up a method periodically so a client gets connected again after the service has been restarted)
- I don't want the Clients to be manually configured on the services side.
- Maybe there is some way to read/save the connection credentials from a calling client without using callbacks. Then I could connect in a normal way....
Thanks in advance for your help