I have a WCF Service and WCF Client working on Duplex Channel using netTCPBinding.
I store connected users in a dictionary ( Dictionary<int userID,CallbackInstance instance>
)
When user Disconnect regularly, call Disconnect from service and I remove the user from my connected user list. It works fine.
but when client pc disconnects unregularly, client could not call Disconnect method, so client still in connected user list, that's the problem. Because when my WCF server check server for online users for a callback, server try to call client's callback method, but client is not available, and my WCF Server App crash.
Is it possible to check client status before calling callback instance?