I have a WCF Service that is transferring large files.
Currently I'm using Singleton service with list of instances from my class to hold the state and to response to the client requests for transfer progress and so on.
The instanced class itself handles new threads for each transfer when needed.
Clients who add transfer requests and request progress can disconnect meanwhile and reconnect at random time for the requests.
Also several different clients may want to request progress of all transfers that are going on.
Everything is working great as it is, but I'm sure there is better way of doing this?
Storing state somehow in SQL? Storing state as I'm currently doing and somehow reconnecting to the same instance? How to get data from all instances then?
I hope you understood my rather long question :)